diff options
author | Ana <anastasiyauraleva@gmail.com> | 2025-07-30 01:08:14 -0700 |
---|---|---|
committer | Ana <anastasiyauraleva@gmail.com> | 2025-07-30 01:08:14 -0700 |
commit | 18add1cff9eb36568439d8ea80180c36c1a30260 (patch) | |
tree | 386bea768b4be388817a5286e497da5bd657a26c /src/view/screens | |
parent | d141921abf23d0694ce399615e70011492434e69 (diff) | |
download | voidsky-18add1cff9eb36568439d8ea80180c36c1a30260.tar.zst |
update type errors
Diffstat (limited to 'src/view/screens')
-rw-r--r-- | src/view/screens/Storybook/Toasts.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/screens/Storybook/Toasts.tsx b/src/view/screens/Storybook/Toasts.tsx index 54735f7bb..4c17f1c33 100644 --- a/src/view/screens/Storybook/Toasts.tsx +++ b/src/view/screens/Storybook/Toasts.tsx @@ -12,8 +12,9 @@ import {H1, Text} from '#/components/Typography' function ToastPreview({message, type}: {message: string; type: ToastType}) { const t = useTheme() const toastStyles = getToastTypeStyles(t) - const colors = toastStyles[type] - const IconComponent = TOAST_TYPE_TO_ICON[type] + const colors = toastStyles[type as keyof typeof toastStyles] + const IconComponent = + TOAST_TYPE_TO_ICON[type as keyof typeof TOAST_TYPE_TO_ICON] return ( <Pressable |