From 35d3037dee2120e3fdc7abec862a4140564645cd Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Thu, 5 Mar 2026 14:26:40 -0500 Subject: [PATCH] revert to dialog sheet for now --- src/components/BotAccountAlert.tsx | 60 +++++++++++++++++++----------- src/components/Dialog/index.tsx | 4 +- src/components/Prompt.tsx | 11 +----- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/src/components/BotAccountAlert.tsx b/src/components/BotAccountAlert.tsx index 5de4721ece..82b2517a27 100644 --- a/src/components/BotAccountAlert.tsx +++ b/src/components/BotAccountAlert.tsx @@ -5,9 +5,9 @@ import {Trans} from '@lingui/react/macro' import {atoms as a, useTheme} from '#/alf' import {Button, ButtonText} from '#/components/Button' -import type * as Dialog from '#/components/Dialog' +import * as Dialog from '#/components/Dialog' import {Robot_Filled_Corner2_Rounded as RobotIcon} from '#/components/icons/Robot' -import * as Prompt from '#/components/Prompt' +import {Text} from '#/components/Typography' import {navigate} from '#/Navigation' export function BotAccountAlert({ @@ -25,33 +25,49 @@ export function BotAccountAlert({ : 'This account has been marked as automated by its owner' return ( - - - + + + - + {description} - - - - {}} color="primary" /> - {isOwn ? ( + + - ) : null} - - + {isOwn ? ( + + ) : null} + + + ) } diff --git a/src/components/Dialog/index.tsx b/src/components/Dialog/index.tsx index 403a28ef09..234f1871f2 100644 --- a/src/components/Dialog/index.tsx +++ b/src/components/Dialog/index.tsx @@ -125,7 +125,9 @@ function OuterAlert({ a.overflow_hidden, ]}> - {children} + + {children} + diff --git a/src/components/Prompt.tsx b/src/components/Prompt.tsx index d11eddde1f..fead8b49bb 100644 --- a/src/components/Prompt.tsx +++ b/src/components/Prompt.tsx @@ -111,7 +111,6 @@ export function TitleText({ style, }: React.PropsWithChildren) { const {titleId} = useContext(Context) - const {type} = Dialog.useDialogContext() return ( {children} @@ -135,18 +133,11 @@ export function DescriptionText({ }: React.PropsWithChildren<{selectable?: boolean}>) { const t = useTheme() const {descriptionId} = useContext(Context) - const {type} = Dialog.useDialogContext() return ( + style={[a.text_md, a.leading_snug, t.atoms.text_contrast_high, a.pb_lg]}> {children} )