toast
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import '@/bridge';
|
||||
import { router } from '@/shared/configs/sentry';
|
||||
import { Toasts } from '@/shared/ui/toasts/toasts';
|
||||
import { TopButton } from '@/widgets/top-button';
|
||||
import { useInitTheme } from './hooks';
|
||||
import { IOSStatusBar } from '@/widgets/ios-status-bar';
|
||||
import { RouterProvider } from 'react-router-dom';
|
||||
|
||||
export const App = () => {
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
import { notiBar } from '@/shared/lib';
|
||||
import { useStore } from '@/shared/model/store';
|
||||
import { useEffect } from 'react';
|
||||
import { useShallow } from 'zustand/react/shallow';
|
||||
|
||||
export const useNotiBar = () => {
|
||||
const [notiBarMessage, setNotiBarMessage] = useStore(
|
||||
useShallow((state: any) => [
|
||||
state.utilEventSlice.notiBarMessage,
|
||||
state.utilEventSlice.setNotiBarMessage
|
||||
])
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
if(notiBarMessage) {
|
||||
notiBar(notiBarMessage);
|
||||
setNotiBarMessage('');
|
||||
}
|
||||
}, [notiBarMessage]);
|
||||
};
|
||||
Reference in New Issue
Block a user