Revert "completely rearchitect toasts"

This reverts commit 2e2fcaeeed.
This commit is contained in:
Hailey
2025-05-02 11:41:55 -07:00
parent da7503fee3
commit 267cc37e60
5 changed files with 117 additions and 121 deletions
+3 -1
View File
@@ -9,6 +9,7 @@ import {
type FontAwesomeIconStyle,
type Props as FontAwesomeProps,
} from '@fortawesome/react-native-fontawesome'
import type React from 'react';
const DURATION = 3500
@@ -25,7 +26,8 @@ let toastTimeout: NodeJS.Timeout | undefined
// components
// =
export function ToastContainer() {
type ToastContainerProps = {}
export const ToastContainer: React.FC<ToastContainerProps> = ({}) => {
const [activeToast, setActiveToast] = useState<ActiveToast | undefined>()
useEffect(() => {
globalSetActiveToast = (t: ActiveToast | undefined) => {