refactor: settings move to single folder
This commit is contained in:
parent
7ccbb922de
commit
254c5079c4
@ -4,7 +4,7 @@ import { Dashboard } from './pages/Dashboard';
|
||||
import { Login } from './pages/Login';
|
||||
import { Monitor } from './pages/Monitor';
|
||||
import { Website } from './pages/Website';
|
||||
import { Settings } from './pages/Settings';
|
||||
import { SettingsPage } from './pages/Settings';
|
||||
import { Servers } from './pages/Servers';
|
||||
import { useUserStore } from './store/user';
|
||||
import { Register } from './pages/Register';
|
||||
@ -24,7 +24,7 @@ export const AppRoutes: React.FC = React.memo(() => {
|
||||
<Route path="/monitor" element={<Monitor />} />
|
||||
<Route path="/website" element={<Website />} />
|
||||
<Route path="/servers" element={<Servers />} />
|
||||
<Route path="/settings/*" element={<Settings />} />
|
||||
<Route path="/settings/*" element={<SettingsPage />} />
|
||||
</Route>
|
||||
) : (
|
||||
<Route>
|
||||
|
@ -1,11 +1,11 @@
|
||||
import { Menu, MenuProps } from 'antd';
|
||||
import React from 'react';
|
||||
import { Routes, Route, useLocation, useNavigate } from 'react-router-dom';
|
||||
import { WebsiteInfo } from '../components/WebsiteInfo';
|
||||
import { WebsiteList } from '../components/WebsiteList';
|
||||
import { useEvent } from '../hooks/useEvent';
|
||||
import { WebsiteInfo } from '../../components/WebsiteInfo';
|
||||
import { WebsiteList } from '../../components/WebsiteList';
|
||||
import { useEvent } from '../../hooks/useEvent';
|
||||
|
||||
export const Settings: React.FC = React.memo(() => {
|
||||
export const SettingsPage: React.FC = React.memo(() => {
|
||||
const navigate = useNavigate();
|
||||
const { pathname } = useLocation();
|
||||
|
||||
@ -45,4 +45,4 @@ export const Settings: React.FC = React.memo(() => {
|
||||
</div>
|
||||
);
|
||||
});
|
||||
Settings.displayName = 'Settings';
|
||||
SettingsPage.displayName = 'SettingsPage';
|
Loading…
Reference in New Issue
Block a user