diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index 7c01414d5a..aab7d4b756 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -50,7 +50,6 @@ import { type BskyAgent, type RichText, } from '@atproto/api' -import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import {msg, plural, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useNavigation} from '@react-navigation/native' @@ -68,7 +67,6 @@ import { } from '#/lib/constants' import {useIsKeyboardVisible} from '#/lib/hooks/useIsKeyboardVisible' import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' -import {usePalette} from '#/lib/hooks/usePalette' import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' import {mimeToExt} from '#/lib/media/video/util' import {type NavigationProp} from '#/lib/routes/types' @@ -117,9 +115,9 @@ import {ThreadgateBtn} from '#/view/com/composer/threadgate/ThreadgateBtn' import {SubtitleDialogBtn} from '#/view/com/composer/videos/SubtitleDialog' import {VideoPreview} from '#/view/com/composer/videos/VideoPreview' import {VideoTranscodeProgress} from '#/view/com/composer/videos/VideoTranscodeProgress' -import {Text} from '#/view/com/util/text/Text' import {UserAvatar} from '#/view/com/util/UserAvatar' import {atoms as a, native, useTheme, web} from '#/alf' +import {Admonition} from '#/components/Admonition' import {Button, ButtonIcon, ButtonText} from '#/components/Button' import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfoIcon} from '#/components/icons/CircleInfo' import {EmojiArc_Stroke2_Corner0_Rounded as EmojiSmileIcon} from '#/components/icons/Emoji' @@ -128,7 +126,7 @@ import {TimesLarge_Stroke2_Corner0_Rounded as XIcon} from '#/components/icons/Ti import {LazyQuoteEmbed} from '#/components/Post/Embed/LazyQuoteEmbed' import * as Prompt from '#/components/Prompt' import * as Toast from '#/components/Toast' -import {Text as NewText} from '#/components/Typography' +import {Text} from '#/components/Typography' import {useAnalytics} from '#/analytics' import {IS_ANDROID, IS_IOS, IS_NATIVE, IS_WEB} from '#/env' import {BottomSheetPortalProvider} from '../../../../modules/bottom-sheet' @@ -1174,7 +1172,7 @@ function ComposerTopBar({ topBarAnimatedStyle: StyleProp children?: React.ReactNode }) { - const pal = usePalette('default') + const t = useTheme() const {_} = useLingui() return ( - {/* Drafts not supported for replies */} - {!isReply && ( - - )} {isPublishing ? ( <> - {publishingStage} + {publishingStage} ) : ( - + <> + {!isReply && ( + + )} + + )} {children} @@ -1276,18 +1273,10 @@ function ComposerTopBar({ } function AltTextReminder({error}: {error: string}) { - const pal = usePalette('default') return ( - - - - - {error} - + + {error} + ) } @@ -1954,9 +1943,9 @@ function ErrorBanner({ ]}> - + {error} - +