mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
toggles between voice/dataset create button links
This commit is contained in:
1 parent
ec4fa80f65
commit
d7657185fe
2 files changed
+8
-1
No files matched your search
@@ -646,6 +646,13 @@ class PageContainer extends React.Component<
|
||||
<Route
|
||||
exact
|
||||
path="/voice-designer/create"
|
||||
component={VoiceDesignerVoiceEditPage}
|
||||
/>
|
||||
|
||||
{/* Route for initial voice creation */}
|
||||
<Route
|
||||
exact
|
||||
path="/voice-designer/dataset/create"
|
||||
component={DatasetEditor}
|
||||
/>
|
||||
|
||||
|
||||
@@ -88,7 +88,7 @@ function VoiceDesignerMainPage() {
|
||||
const button = {
|
||||
label: `Create new ${ view ? "voice" : "dataset" }`,
|
||||
icon: faPlus,
|
||||
to: "/voice-designer/create"
|
||||
to: view ? "/voice-designer/create" : "/voice-designer/dataset/create"
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user