Skip to content

Commit 516916a

Browse files
Align URL paths with page names (#217)
1 parent 199302a commit 516916a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/router/paths.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import { appName } from '../script/environment';
1010
export const Paths = {
1111
HOME: '/',
1212
PLAYGROUND: 'playground',
13-
DATA: 'data',
14-
TRAINING: 'training',
15-
MODEL: 'model',
13+
DATA: 'add-data',
14+
TRAINING: 'train-model',
15+
MODEL: 'test-model',
1616
FILTERS: 'training/filters',
1717
} as const;
1818

@@ -34,16 +34,16 @@ export function navigate(path: PathType) {
3434

3535
export const getTitle = (path: PathType, t: MessageFormatter) => {
3636
switch (path) {
37-
case '/': {
37+
case Paths.HOME: {
3838
return appName;
3939
}
40-
case 'data': {
40+
case Paths.DATA: {
4141
return `${t('content.index.toolProcessCards.data.title')} | ${appName}`;
4242
}
43-
case 'training': {
43+
case Paths.TRAINING: {
4444
return `${t('content.index.toolProcessCards.train.title')} | ${appName}`;
4545
}
46-
case 'model': {
46+
case Paths.MODEL: {
4747
return `${t('content.index.toolProcessCards.model.title')} | ${appName}`;
4848
}
4949
default:

0 commit comments

Comments
 (0)