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/com/util/Toast.tsx | |
parent | d141921abf23d0694ce399615e70011492434e69 (diff) | |
download | voidsky-18add1cff9eb36568439d8ea80180c36c1a30260.tar.zst |
update type errors
Diffstat (limited to 'src/view/com/util/Toast.tsx')
-rw-r--r-- | src/view/com/util/Toast.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/com/util/Toast.tsx b/src/view/com/util/Toast.tsx index 7258eac9d..4c999ca2a 100644 --- a/src/view/com/util/Toast.tsx +++ b/src/view/com/util/Toast.tsx @@ -57,8 +57,9 @@ function Toast({ const [cardHeight, setCardHeight] = useState(0) 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] // for the exit animation to work on iOS the animated component // must not be the root component |