From 2702f3fd70bf9e75721961c545c3d0bf7ebce5c8 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 29 Apr 2022 20:41:14 -0500 Subject: [PATCH] ProfileStats: convert to TSX --- .../features/ui/components/profile_stats.js | Bin 2009 -> 0 bytes .../features/ui/components/profile_stats.tsx | 56 ++++++++++++++++++ 2 files changed, 56 insertions(+) delete mode 100644 app/soapbox/features/ui/components/profile_stats.js create mode 100644 app/soapbox/features/ui/components/profile_stats.tsx diff --git a/app/soapbox/features/ui/components/profile_stats.js b/app/soapbox/features/ui/components/profile_stats.js deleted file mode 100644 index 325a9c72f9abfa01ad7bc195d0c1fd2008c61c0a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2009 zcmdT^U2EGw5PbKq*g`=v*b=30juirdkU$$kn)l``t?g@0ckbP)Nh27 zyfpYB_U+Ej&di-GH^vg&ShKl%-k^h}H6=tF{yruDLv%8dZOtu;oVs)C{~wO7%CaJ{ zPZY#AI!y)d>Ev~6=nY!>Dztw<`D>QLhM9(pgok;oq=aEDJrTau*h zCpRpRMoliQr0>g(b_8X=M0T)MT#o>jMk(`%*3EzwC}t3eJU5l5WP1_?IYgzX(}RmH z`nCv~$rk1%5ce{K3jocS>Ect!088&@!P(%)C|ANcpN^$e$RdyfmH>6(AjBcLsVtuN z`$IiqN{-894&LfEQW^ga{O9eP4N*(X!uy^`cZ)wOX|eDN0dzXd;5b!@#oXB9s3p+6 z7A5Y&JF-%*T1=zQmCPS5g)S7@-Ku4!b6?YV>XtV{8;?7}t&cvSq&O`Z&|130FXm1H z)xMykJc0c=M?IlQE+PKVb@Y?`XsWCRT`ARK2SNbt2reg{-*qJ`q}b<$BJZCUt!t0N z7l3)2SP)9C^c7+0vMA?-qK&|9M2=bgxjF5MxxBwgWU~4`J^NUD@Fv|x@xJL-%j*3d z8z4!F@w`Z!U4OIMTNdxJ-9mj2DUZhEo%wGf{AsU&Tf%LmHI|t1gC$F0pCfogxmr^e zEsQF7SNWR{T^S9#dbI%RqvzmNx?8n;|2*~6_fcCyZzZs!S9iVR{>2!cfN}H6)Op%E zJusQ4otdX?G6LJb`pdWEz5HdU|H = ({ account, onClickHandler }) => { + const intl = useIntl(); + + if (!account) { + return null; + } + + return ( + + + + + {shortNumberFormat(account.followers_count)} + + + {intl.formatMessage(messages.followers)} + + + + + + + + {shortNumberFormat(account.following_count)} + + + {intl.formatMessage(messages.follows)} + + + + + ); +}; + +export default ProfileStats;