From e402660bc1f1813e9bed19f40a98796ce627237f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 12 Aug 2022 10:15:21 -0500 Subject: [PATCH] StatusPage: convert to TSX --- app/soapbox/pages/status_page.js | Bin 1984 -> 0 bytes app/soapbox/pages/status_page.tsx | 57 ++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) delete mode 100644 app/soapbox/pages/status_page.js create mode 100644 app/soapbox/pages/status_page.tsx diff --git a/app/soapbox/pages/status_page.js b/app/soapbox/pages/status_page.js deleted file mode 100644 index e4ff9955e9d7aef3da65273a5155a4dca5cb6dbb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1984 zcmb_dO>5gg5WVYHOfRtwmUSq-G`49INGYTcnuH$BS{mC+q+PKe*g@#OcXsu)QBr8! z8XvT)w=?tJyjk(0l*+(QWT}Cjk_AkZd!AfIym|G#D6C=I9Pg~cYe|~|#S3iAJ4jp- zCQduh5Tt@s3W1cP4zt7xGkYRfm+Y2{ryD5^surdtE4T8L?2s9XtrN?WKE6(J!f$r| zK#(i~_;rvE@SGPQYt5|vCpxeE{eJh2L%f^Vr = ({ children }) => { + const me = useAppSelector(state => state.me); + const features = useFeatures(); + + return ( + <> + + {children} + + {!me && ( + + {Component => } + + )} + + + + {!me && ( + + {Component => } + + )} + {features.trends && ( + + {Component => } + + )} + {features.suggestions && ( + + {Component => } + + )} + + + + ); +}; + +export default StatusPage;