From ec6b1cb214877298576726a9073892f6b62179c6 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 13 Jan 2026 13:52:55 +0200 Subject: [PATCH] Update drafts button: text-only, ghost/primary style - Show "Drafts" or "Drafts (N)" as text, no icon - Use ghost variant with primary color - Match Cancel button styling Co-Authored-By: Claude Opus 4.5 --- src/view/com/composer/drafts/DraftsButton.tsx | 43 ++++++------------- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/src/view/com/composer/drafts/DraftsButton.tsx b/src/view/com/composer/drafts/DraftsButton.tsx index b27b225103..86a589a331 100644 --- a/src/view/com/composer/drafts/DraftsButton.tsx +++ b/src/view/com/composer/drafts/DraftsButton.tsx @@ -1,14 +1,11 @@ -import {View} from 'react-native' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {type StoredDraft, useDrafts, useSaveDraft} from '#/state/drafts' -import {atoms as a, useTheme} from '#/alf' -import {Button, ButtonIcon} from '#/components/Button' +import {atoms as a} from '#/alf' +import {Button, ButtonText} from '#/components/Button' import * as Dialog from '#/components/Dialog' -import {PageText_Stroke2_Corner0_Rounded as DraftIcon} from '#/components/icons/PageText' import * as Prompt from '#/components/Prompt' -import {Text} from '#/components/Typography' import {DraftsListDialog} from './DraftsListDialog' export function DraftsButton({ @@ -21,7 +18,6 @@ export function DraftsButton({ isEmpty: boolean }) { const {_} = useLingui() - const t = useTheme() const draftsDialogControl = Dialog.useDialogControl() const savePromptControl = Prompt.usePromptControl() const {data: drafts} = useDrafts() @@ -53,34 +49,19 @@ export function DraftsButton({