From 722c96bec2d9c909b45f299421e63a69bac2a62f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 16 Apr 2022 13:43:55 -0500 Subject: [PATCH] Notification: convert to TSX --- app/soapbox/components/status.tsx | 2 +- .../{notification.js => notification.tsx} | Bin 6821 -> 7373 bytes app/soapbox/normalizers/notification.ts | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename app/soapbox/features/notifications/components/{notification.js => notification.tsx} (57%) diff --git a/app/soapbox/components/status.tsx b/app/soapbox/components/status.tsx index c3417c35e3..a7f40a8613 100644 --- a/app/soapbox/components/status.tsx +++ b/app/soapbox/components/status.tsx @@ -29,7 +29,7 @@ import type { } from 'soapbox/types/entities'; // Defined in components/scrollable_list -type ScrollPosition = { height: number, top: number }; +export type ScrollPosition = { height: number, top: number }; export const textForScreenReader = (intl: IntlShape, status: StatusEntity, rebloggedByText?: string): string => { const { account } = status; diff --git a/app/soapbox/features/notifications/components/notification.js b/app/soapbox/features/notifications/components/notification.tsx similarity index 57% rename from app/soapbox/features/notifications/components/notification.js rename to app/soapbox/features/notifications/components/notification.tsx index 00911e68ee8932d20d063a7f41b1b82cdbb609f1..df49845927246b71a353cdc316f2f7f43901ae4d 100644 GIT binary patch delta 2354 zcmb_d&u<$=6qXa0Caa`z6p}QBqE{)zw&L0qQjyriZh@p~2(BPWRU`!Icy}BRTJNlO zW?hVHxe^E>4hS>{&N*=6g!~5}aexzu1C>CcLR>0wg98!=4$RE%`bPpKp!#6#&V2K} z_uhQp+fOcj{me&;o1cBUpXiXfM|}>w>0xNWRl+#+o6v@;PwSAbh41MVV;Hw>`P6Y< zqKt4t-5#7#Y$ zRr|CG0mB^W5&=PHi2=UxO+L^L@seu_e@wr9Cy8u8;KJpAh#*L8r_^XA<8pr z!VBB4&kmZGir9T5R1cTwZL+MO9y3qkc(VoVE$`9Ms%( zQ62Brc-`qfed5E!>xBYb=IlJ#lbyqcMP0_@ESajsqQ1R4*c;XMoV;{m_p7jR6$K72 z4_626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}%!w1@0{=@o_U`mK_9l^HZh!BB2>XAc&Lz+DsHa&aIetQpE!R;CWMH3@liiVx z?I$-F9k_I}o#*z!k%JIEa>3anL`zGU^0!_vYyxZS$KV+IK5&8k9N1*F!Lbaoa{n}4 zjjw~x6_!6!KLT>BKb2-vsmC4aWwo)J>QL0f>f-Z8#fa{o9Z$%vTAv)dIQ)fmjC@T3 zzQyETik@qYeH{5&=M6+VKo`mfyEP|QK=AZu4tB1-jj^5O6VqDM4ES^B>OM5FZ|R7v zz=vhzLrZw^p~gFK%{z!#Cwigmnz6Xs_>p^n{2MTMQitNAVg4OikIB6Pw{2Yf9Tx-3 z<6_Z<^Kv^L0_L);nm)GeWlWIR01^He4Ekcby+hNHwP_TTnTA<{i_k*GILa(9W$)7$egPyLgU$c| diff --git a/app/soapbox/normalizers/notification.ts b/app/soapbox/normalizers/notification.ts index ea2f922e97..f6912c2684 100644 --- a/app/soapbox/normalizers/notification.ts +++ b/app/soapbox/normalizers/notification.ts @@ -11,7 +11,7 @@ import { import type { Account, Status, EmbeddedEntity } from 'soapbox/types/entities'; -type NotificationType = '' +export type NotificationType = '' | 'follow' | 'follow_request' | 'mention'