diff options
Diffstat (limited to 'src/view/screens/Storybook/Toasts.tsx')
-rw-r--r-- | src/view/screens/Storybook/Toasts.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/view/screens/Storybook/Toasts.tsx b/src/view/screens/Storybook/Toasts.tsx index 5197ec2f4..da0f1c416 100644 --- a/src/view/screens/Storybook/Toasts.tsx +++ b/src/view/screens/Storybook/Toasts.tsx @@ -1,13 +1,13 @@ -import {View, Pressable} from 'react-native' +import {Pressable,View} from 'react-native' -import {atoms as a, useTheme} from '#/alf' -import {Text, H1} from '#/components/Typography' +import * as Toast from '#/view/com/util/Toast' import { - type ToastType, - TOAST_TYPE_TO_ICON, getToastTypeStyles, + TOAST_TYPE_TO_ICON, + type ToastType, } from '#/view/com/util/Toast.style' -import * as Toast from '#/view/com/util/Toast' +import {atoms as a, useTheme} from '#/alf' +import {H1,Text} from '#/components/Typography' function ToastPreview({message, type}: {message: string; type: ToastType}) { const t = useTheme() @@ -16,7 +16,7 @@ function ToastPreview({message, type}: {message: string; type: ToastType}) { const IconComponent = TOAST_TYPE_TO_ICON[type] return ( - <Pressable + <Pressable accessibilityRole="button" onPress={() => Toast.show(message, type)} style={[ {backgroundColor: colors.backgroundColor}, |