mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 09:48:44 +00:00
use voice button
This commit is contained in:
1 parent
e79cb3647c
commit
d3faead3cc
1 file changed
+10
@@ -42,6 +42,10 @@ function VoiceDesignerMainPage() {
|
||||
history.push(`/voice-designer/${type}/${token}/edit`);
|
||||
};
|
||||
|
||||
const navToUseVoice = (token: string, type: string) => {
|
||||
history.push(`/voice-designer/voice/${token}`);
|
||||
};
|
||||
|
||||
const rowClick =
|
||||
(todo: any, type?: string) =>
|
||||
({ target }: { target: any }) => {
|
||||
@@ -89,6 +93,12 @@ function VoiceDesignerMainPage() {
|
||||
variant: "danger",
|
||||
onClick: rowClick(voices.delete),
|
||||
},
|
||||
{
|
||||
label: "Use Voice",
|
||||
small: true,
|
||||
variant: "primary",
|
||||
onClick: rowClick(navToUseVoice),
|
||||
},
|
||||
],
|
||||
name: voice.title,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user