This commit is contained in:
focp212@naver.com
2025-10-22 14:21:14 +09:00
parent 1e7f13d5cc
commit 556b3f2a6a
27 changed files with 178 additions and 397 deletions

View File

@@ -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 = () => {

View File

@@ -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' });
};