Skip to content

Commit

Permalink
refactor: Reorganize sidebar navigation and add personal settings route
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Mar 7, 2025
1 parent 7f74a96 commit fd22948
Show file tree
Hide file tree
Showing 6 changed files with 252 additions and 116 deletions.
11 changes: 11 additions & 0 deletions web/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import { useTranslation } from 'react-i18next';
import { StatusContext } from './context/Status';
import { setStatusData } from './helpers/data.js';
import { API, showError } from './helpers';
import PersonalSetting from './components/PersonalSetting.js';

const Home = lazy(() => import('./pages/Home'));
const Detail = lazy(() => import('./pages/Detail'));
Expand Down Expand Up @@ -177,6 +178,16 @@ function App() {
</PrivateRoute>
}
/>
<Route
path='/personal'
element={
<PrivateRoute>
<Suspense fallback={<Loading></Loading>}>
<PersonalSetting />
</Suspense>
</PrivateRoute>
}
/>
<Route
path='/topup'
element={
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/PersonalSetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ const PersonalSetting = () => {
</div>
</div>
</Modal>
<div style={{marginTop: 20}}>
<div>
<Card
title={
<Card.Meta
Expand Down
Loading

0 comments on commit fd22948

Please sign in to comment.