Skip to content

Commit fd22948

Browse files
committed
refactor: Reorganize sidebar navigation and add personal settings route
1 parent 7f74a96 commit fd22948

6 files changed

Lines changed: 252 additions & 116 deletions

File tree

web/src/App.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { useTranslation } from 'react-i18next';
3030
import { StatusContext } from './context/Status';
3131
import { setStatusData } from './helpers/data.js';
3232
import { API, showError } from './helpers';
33+
import PersonalSetting from './components/PersonalSetting.js';
3334

3435
const Home = lazy(() => import('./pages/Home'));
3536
const Detail = lazy(() => import('./pages/Detail'));
@@ -177,6 +178,16 @@ function App() {
177178
</PrivateRoute>
178179
}
179180
/>
181+
<Route
182+
path='/personal'
183+
element={
184+
<PrivateRoute>
185+
<Suspense fallback={<Loading></Loading>}>
186+
<PersonalSetting />
187+
</Suspense>
188+
</PrivateRoute>
189+
}
190+
/>
180191
<Route
181192
path='/topup'
182193
element={

web/src/components/PersonalSetting.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ const PersonalSetting = () => {
393393
</div>
394394
</div>
395395
</Modal>
396-
<div style={{marginTop: 20}}>
396+
<div>
397397
<Card
398398
title={
399399
<Card.Meta

0 commit comments

Comments
 (0)