Update dialog descriptions for demo
This commit is contained in:
@@ -12,7 +12,7 @@ export function Dialogs() {
|
|||||||
const prompt = Prompt.usePromptControl()
|
const prompt = Prompt.usePromptControl()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<View style={[a.gap_md]}>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
@@ -34,10 +34,10 @@ export function Dialogs() {
|
|||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<Prompt.Outer control={prompt}>
|
<Prompt.Outer control={prompt}>
|
||||||
<Prompt.Title>Are you sure?</Prompt.Title>
|
<Prompt.Title>This is a prompt</Prompt.Title>
|
||||||
<Prompt.Description>
|
<Prompt.Description>
|
||||||
This action cannot be undone. This action cannot be undone. This
|
This is a generic prompt component. It accepts a title and a
|
||||||
action cannot be undone.
|
description, as well as two actions.
|
||||||
</Prompt.Description>
|
</Prompt.Description>
|
||||||
<Prompt.Actions>
|
<Prompt.Actions>
|
||||||
<Prompt.Cancel>Cancel</Prompt.Cancel>
|
<Prompt.Cancel>Cancel</Prompt.Cancel>
|
||||||
@@ -55,7 +55,9 @@ export function Dialogs() {
|
|||||||
accessibilityLabelledBy="dialog-title">
|
accessibilityLabelledBy="dialog-title">
|
||||||
<View style={[a.relative, a.gap_md, a.w_full]}>
|
<View style={[a.relative, a.gap_md, a.w_full]}>
|
||||||
<H3 nativeID="dialog-title">Dialog</H3>
|
<H3 nativeID="dialog-title">Dialog</H3>
|
||||||
<P nativeID="dialog-description">Description</P>
|
<P nativeID="dialog-description">
|
||||||
|
A scrollable dialog with an input within it.
|
||||||
|
</P>
|
||||||
<Dialog.InputText
|
<Dialog.InputText
|
||||||
testID=""
|
testID=""
|
||||||
value=""
|
value=""
|
||||||
@@ -79,6 +81,6 @@ export function Dialogs() {
|
|||||||
</View>
|
</View>
|
||||||
</Dialog.ScrollableInner>
|
</Dialog.ScrollableInner>
|
||||||
</Dialog.Outer>
|
</Dialog.Outer>
|
||||||
</>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ export function Storybook() {
|
|||||||
Dark
|
Dark
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
|
<Dialogs />
|
||||||
|
|
||||||
<ThemeProvider theme="light">
|
<ThemeProvider theme="light">
|
||||||
<Theming />
|
<Theming />
|
||||||
@@ -70,7 +71,6 @@ export function Storybook() {
|
|||||||
<Buttons />
|
<Buttons />
|
||||||
<Links />
|
<Links />
|
||||||
<Forms />
|
<Forms />
|
||||||
<Dialogs />
|
|
||||||
<Breakpoints />
|
<Breakpoints />
|
||||||
</View>
|
</View>
|
||||||
</CenteredView>
|
</CenteredView>
|
||||||
|
|||||||
Reference in New Issue
Block a user