use voice button

This commit is contained in:
BFlat committed 2023-11-16 21:19:51 +07:00
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,
};