diff options
author | dan <dan.abramov@gmail.com> | 2024-04-04 21:34:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 21:34:55 +0100 |
commit | 3915bb43169ae501d81571c5e1efa12cf0e24dbb (patch) | |
tree | be2f7bed7c842be71922f2793b4b4a20cd6fbc24 /src/view/screens/Storybook/Dialogs.tsx | |
parent | c190fd58ec82b36ea8124902cad34acc4a5b5ac0 (diff) | |
download | voidsky-3915bb43169ae501d81571c5e1efa12cf0e24dbb.tar.zst |
Enforce Text suffix for Text-rendering components (#3407)
* Rm unused * Add Text suffix to Title/Description * Add Text suffix to text components * Add Text suffix to props * Validate Text components returns
Diffstat (limited to 'src/view/screens/Storybook/Dialogs.tsx')
-rw-r--r-- | src/view/screens/Storybook/Dialogs.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/view/screens/Storybook/Dialogs.tsx b/src/view/screens/Storybook/Dialogs.tsx index c2eaf19ac..41863bd9c 100644 --- a/src/view/screens/Storybook/Dialogs.tsx +++ b/src/view/screens/Storybook/Dialogs.tsx @@ -1,12 +1,12 @@ import React from 'react' import {View} from 'react-native' +import {useDialogStateControlContext} from '#/state/dialogs' import {atoms as a} from '#/alf' import {Button} from '#/components/Button' -import {H3, P} from '#/components/Typography' import * as Dialog from '#/components/Dialog' import * as Prompt from '#/components/Prompt' -import {useDialogStateControlContext} from '#/state/dialogs' +import {H3, P} from '#/components/Typography' export function Dialogs() { const scrollable = Dialog.useDialogControl() @@ -61,11 +61,11 @@ export function Dialogs() { </Button> <Prompt.Outer control={prompt}> - <Prompt.Title>This is a prompt</Prompt.Title> - <Prompt.Description> + <Prompt.TitleText>This is a prompt</Prompt.TitleText> + <Prompt.DescriptionText> This is a generic prompt component. It accepts a title and a description, as well as two actions. - </Prompt.Description> + </Prompt.DescriptionText> <Prompt.Actions> <Prompt.Cancel>Cancel</Prompt.Cancel> <Prompt.Action onPress={() => {}}>Confirm</Prompt.Action> |