diff --git a/phone/src/ui/hooks/useSnackbar.ts b/phone/src/ui/hooks/useSnackbar.ts index ee9dd33..d072f59 100644 --- a/phone/src/ui/hooks/useSnackbar.ts +++ b/phone/src/ui/hooks/useSnackbar.ts @@ -2,7 +2,7 @@ import { useContext } from 'react'; import { SnackbarContext } from '../components/SnackbarProvider'; interface ISnackBar { - addAlert: (message: string, type: string) => void; + addAlert: (message: string, type: 'success' | 'error') => void; } export const useSnackbar = (): ISnackBar => useContext(SnackbarContext); \ No newline at end of file