Skip to content

Commit

Permalink
refactor: replace "summary" path with "start"
Browse files Browse the repository at this point in the history
  • Loading branch information
lizable committed Aug 30, 2024
1 parent b2a1d8c commit 3173f22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const StorageHostSettingPage = React.lazy(
() => import('./pages/StorageHostSettingPage'),
);
const UserSettingsPage = React.lazy(() => import('./pages/UserSettingsPage'));
const SessionListPage = React.lazy(() => import('./pages/SessionListPage'));
// const SessionListPage = React.lazy(() => import('./pages/SessionListPage'));
const NeoSessionPage = React.lazy(() => import('./pages/NeoSessionPage'));
const SessionLauncherPage = React.lazy(
() => import('./pages/SessionLauncherPage'),
Expand Down Expand Up @@ -123,7 +123,7 @@ const router = createBrowserRouter([
element: <RedirectToSummary />,
},
{
path: '/summary',
path: '/start',
Component: () => {
const { token } = theme.useToken();
return (
Expand Down
8 changes: 4 additions & 4 deletions react/src/components/MainLayout/WebUISider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import {
BarsOutlined,
CloudUploadOutlined,
ControlOutlined,
DashboardOutlined,
ExportOutlined,
FileDoneOutlined,
HddOutlined,
InfoCircleOutlined,
PlayCircleOutlined,
RocketOutlined,
SolutionOutlined,
ToolOutlined,
Expand Down Expand Up @@ -71,9 +71,9 @@ const WebUISider: React.FC<WebUISiderProps> = (props) => {

const generalMenu = filterEmptyItem<ItemType>([
{
label: t('webui.menu.Summary'),
icon: <DashboardOutlined />,
key: 'summary',
label: 'Start', // t('webui.menu.Summary'),
icon: <PlayCircleOutlined style={{ color: token.colorPrimaryBg }} />,
key: 'start', // 'summary',
},
{
label: t('webui.menu.Sessions'),
Expand Down
1 change: 0 additions & 1 deletion react/src/components/ResourceUnit.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Flex from './Flex';
import { Typography, Progress, theme } from 'antd';
import _ from 'lodash';
import React from 'react';

export interface ResourceUnitProps {
Expand Down

0 comments on commit 3173f22

Please sign in to comment.