|
|
|
@ -6,7 +6,7 @@ export const AppContext = React.createContext<any>(null) |
|
|
|
|
|
|
|
|
|
export interface dispatchModalInterface { |
|
|
|
|
modal: (data: AppModal) => void |
|
|
|
|
toast: (message: string | JSX.Element) => void |
|
|
|
|
toast: (message: string | JSX.Element, uid?:string | number) => void |
|
|
|
|
alert: (data: AlertModal) => void |
|
|
|
|
handleHideModal: () => void, |
|
|
|
|
handleToaster: () => void |
|
|
|
@ -14,7 +14,7 @@ export interface dispatchModalInterface { |
|
|
|
|
|
|
|
|
|
export const dispatchModalContext = React.createContext<dispatchModalInterface>({ |
|
|
|
|
modal: (data: AppModal) => { }, |
|
|
|
|
toast: (message: string | JSX.Element) => {}, |
|
|
|
|
toast: (message: string | JSX.Element, uid?:string | number) => {}, |
|
|
|
|
alert: (data: AlertModal) => {}, |
|
|
|
|
handleHideModal: () => {}, |
|
|
|
|
handleToaster: () => {} |
|
|
|
|