feat: add toast for workspace deletion (#1825)

Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
Aditya Sharma
2023-04-05 19:17:14 +05:30
committed by GitHub
parent 116caff3c7
commit 0c87bf36ca
6 changed files with 23 additions and 7 deletions

View File

@@ -96,7 +96,7 @@ type SettingProps<Flavour extends keyof WorkspaceRegistry> =
UIBaseProps<Flavour> & {
currentTab: SettingPanel;
onChangeTab: (tab: SettingPanel) => void;
onDeleteWorkspace: () => void;
onDeleteWorkspace: () => Promise<void>;
onTransformWorkspace: <
From extends keyof WorkspaceRegistry,
To extends keyof WorkspaceRegistry