Use root tune path

This commit is contained in:
Piotr Rogowski 2022-11-13 15:43:29 +01:00
parent b97765c4fb
commit e2b66a78b9
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ import {
const { useBreakpoint } = Grid;
const { Text, Title } = Typography;
const tunePath = (tuneId: string) => generatePath(Routes.TUNE_TUNE, { tuneId });
const tunePath = (tuneId: string) => generatePath(Routes.TUNE_ROOT, { tuneId });
const Hub = () => {
const { xs } = useBreakpoint();

View File

@ -106,7 +106,7 @@ const logIcon = () => <FundOutlined />;
const toothLogIcon = () => <SettingOutlined />;
const iniIcon = () => <FileTextOutlined />;
const tunePath = (tuneId: string) => generatePath(Routes.TUNE_TUNE, { tuneId });
const tunePath = (tuneId: string) => generatePath(Routes.TUNE_ROOT, { tuneId });
const tuneParser = new TuneParser();
const bufferToFile = (buffer: ArrayBuffer, name: string) => new File([buffer], name);
@ -164,7 +164,7 @@ const UploadPage = () => {
const noop = () => { };
const goToNewTune = () => navigate(generatePath(Routes.TUNE_TUNE, {
const goToNewTune = () => navigate(generatePath(Routes.TUNE_ROOT, {
tuneId: newTuneId!,
}));