retry
This commit is contained in:
@ -1,36 +0,0 @@
|
||||
import React, { useEffect } from 'react';
|
||||
import { Routes, Route, Navigate } from 'react-router-dom';
|
||||
import { Layout } from 'antd';
|
||||
import ShellHeader from './components/ShellHeader';
|
||||
import AppContainer from './components/AppContainer';
|
||||
import LoadKMS from './components/LoadKMS';
|
||||
import { useApp } from './contexts/AppContext';
|
||||
|
||||
const { Content } = Layout;
|
||||
|
||||
const App: React.FC = () => {
|
||||
const { setUser } = useApp();
|
||||
|
||||
useEffect(() => {
|
||||
setUser({
|
||||
email: 'admin@example.com',
|
||||
name: 'Admin User',
|
||||
});
|
||||
}, [setUser]);
|
||||
|
||||
return (
|
||||
<Layout className="shell-layout">
|
||||
<LoadKMS />
|
||||
<ShellHeader />
|
||||
<Content className="shell-content">
|
||||
<Routes>
|
||||
<Route path="/kms/*" element={<AppContainer />} />
|
||||
<Route path="/" element={<Navigate to="/kms" replace />} />
|
||||
<Route path="*" element={<AppContainer />} />
|
||||
</Routes>
|
||||
</Content>
|
||||
</Layout>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user