toast
This commit is contained in:
@@ -8,15 +8,15 @@ import {
|
||||
export type NavigateTo = PathType | -1 | 0;
|
||||
|
||||
export const goBackWebview = (goBack: () => void) => {
|
||||
if (!window.ReactNativeWebView) {
|
||||
if (window.history.state?.idx > 0) {
|
||||
goBack();
|
||||
return;
|
||||
} else {
|
||||
window.close();
|
||||
}
|
||||
if(window.history.state?.idx > 0){
|
||||
goBack();
|
||||
return;
|
||||
}
|
||||
else{
|
||||
window.close();
|
||||
}
|
||||
return;
|
||||
|
||||
};
|
||||
|
||||
export const useNavigate = () => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable @cspell/spellchecker */
|
||||
import { toast } from 'react-toastify';
|
||||
import { toast } from "react-toastify";
|
||||
|
||||
export const snackBar = (text: string) => {
|
||||
toast.dismiss({ containerId: 'snackbar' });
|
||||
toast(text, { containerId: 'snackbar' });
|
||||
@@ -7,5 +7,5 @@ export const snackBar = (text: string) => {
|
||||
|
||||
export const notiBar = (text: string) => {
|
||||
toast.dismiss({ containerId: 'notibar' });
|
||||
toast(text);
|
||||
};
|
||||
toast(text, { containerId: 'notibar' });
|
||||
};
|
||||
Reference in New Issue
Block a user