mad formatting

This commit is contained in:
Christopher committed 2021-03-02 20:41:25 +01:00
1 parent 6777498bcc
commit 046447b0fb
74 files changed
+329 -309

No files matched your search

+3 -4
View File
@@ -1,15 +1,14 @@
import { useContext } from 'react';
import { SnackbarContext } from '../providers/SnackbarProvider';
export interface IAlert {
message: string;
type: 'success' | 'error' | 'info'
type: 'success' | 'error' | 'info';
}
interface ISnackBar {
addAlert: ({ message, type}: IAlert) => void;
addAlert: ({ message, type }: IAlert) => void;
alert: IAlert | null;
}
export const useSnackbar = (): ISnackBar => useContext(SnackbarContext);
export const useSnackbar = (): ISnackBar => useContext(SnackbarContext);