mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Comprehensive review changes
This commit is contained in:
parent
3aa8c654cc
commit
6074d9d6e4
143 changed files with 2661 additions and 1535 deletions
|
|
@ -8,23 +8,22 @@ import FeatureDetection from './FeatureDetection';
|
|||
|
||||
import './AppShell.css';
|
||||
|
||||
import { ToastProvider } from '@app/components'
|
||||
import { ToastProvider } from '@app/components';
|
||||
|
||||
function AppShell() {
|
||||
useEffect(() => {
|
||||
window.onbeforeunload = () => true;
|
||||
return () => {
|
||||
window.onbeforeunload = null;
|
||||
};
|
||||
}, []);
|
||||
|
||||
const handleContextMenu = (event) => {
|
||||
event.preventDefault();
|
||||
};
|
||||
|
||||
return (
|
||||
<Suspense fallback="loading">
|
||||
<Provider store={store}>
|
||||
<CssBaseline />
|
||||
<ToastProvider>
|
||||
<div className="AppShell" onContextMenu={handleContextMenu}>
|
||||
<div className="AppShell">
|
||||
<Router>
|
||||
<FeatureDetection />
|
||||
<Routes />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue