From 470b4ab463ee391a748a4e63c6076574a030ad53 Mon Sep 17 00:00:00 2001 From: Mary Kate Fain Date: Wed, 12 Feb 2025 14:26:55 -0600 Subject: [PATCH] streak modal message update --- .../ui/components/modals/streak-modal.tsx | 37 +++++++++++++++++-- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/src/features/ui/components/modals/streak-modal.tsx b/src/features/ui/components/modals/streak-modal.tsx index c40c6b54c..45c8cf43a 100644 --- a/src/features/ui/components/modals/streak-modal.tsx +++ b/src/features/ui/components/modals/streak-modal.tsx @@ -1,20 +1,49 @@ +import flameIcon from '@tabler/icons/filled/flame.svg'; import React from 'react'; import { FormattedMessage } from 'react-intl'; +import HStack from 'soapbox/components/ui/hstack.tsx'; +import Icon from 'soapbox/components/ui/icon.tsx'; import Modal from 'soapbox/components/ui/modal.tsx'; import Text from 'soapbox/components/ui/text.tsx'; +// import { useOwnAccount } from 'soapbox/hooks/useOwnAccount.ts'; +// import { shortNumberFormat } from 'soapbox/utils/numbers.tsx'; + +// const messages = defineMessages({ +// streak: { id: 'account.streak', defaultMessage: 'Day Streak' }, +// }); interface IStreakModal { onClose: () => void; } const StreakModal: React.FC = ({ onClose }) => { + // const { account } = useOwnAccount(); + // const intl = useIntl(); + // const streakCount = account ? shortNumberFormat(account.ditto.streak.days) : 0; return ( - } onClose={onClose}> - - - + + + + + + + + + + + + } + onClose={onClose} + > + + + + + ); };