diff --git a/src/features/compose/components/compose-form.tsx b/src/features/compose/components/compose-form.tsx index 9c4a0851f..bb054c493 100644 --- a/src/features/compose/components/compose-form.tsx +++ b/src/features/compose/components/compose-form.tsx @@ -158,7 +158,7 @@ const ComposeForm = ({ id, shouldCondense, autoFocus, clickab dispatch(changeCompose(id, text)); dispatch(submitCompose(id, { history })); - if (streak) { + if (streak === 0) { dispatch(openModal('STREAK')); } diff --git a/src/features/ui/components/modals/streak-modal.tsx b/src/features/ui/components/modals/streak-modal.tsx index fa1f0f592..805b84e8f 100644 --- a/src/features/ui/components/modals/streak-modal.tsx +++ b/src/features/ui/components/modals/streak-modal.tsx @@ -1,11 +1,8 @@ import flameIcon from '@tabler/icons/filled/flame.svg'; -import calendarIcon from '@tabler/icons/outline/calendar.svg'; -import clsx from 'clsx'; import React from 'react'; import { useIntl, FormattedMessage, defineMessages } from 'react-intl'; import { Link } from 'react-router-dom'; -import { dateFormatOptions } from 'soapbox/components/relative-timestamp.tsx'; import StillImage from 'soapbox/components/still-image.tsx'; import Avatar from 'soapbox/components/ui/avatar.tsx'; import { Card, CardBody } from 'soapbox/components/ui/card.tsx'; @@ -32,34 +29,30 @@ const StreakModal: React.FC = ({ onClose }) => { const { account } = useOwnAccount(); const intl = useIntl(); if (!account) return null; - const memberSinceDate = intl.formatDate(account.created_at, { month: 'long', year: 'numeric' }); // const streakCount = account ? shortNumberFormat(account.ditto.streak.days) : 0; return ( - + + - + } onClose={onClose} > -
- +
+ -
+
@@ -127,29 +120,13 @@ const StreakModal: React.FC = ({ onClose }) => { )} - {account.local ? ( - - - - - - - - ) : null}
- +