mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-17 22:21:26 +01:00
Move error alert to hook
This commit is contained in:
1 parent
bb2d3dd5b1
commit
bee1a5cb2d
3 files changed
+11
-7
No files matched your search
@@ -157,13 +157,7 @@ export const WorkspaceActionsDropdown = memo(function WorkspaceActionsDropdown({
|
||||
key: 'import-data',
|
||||
label: 'Import Data',
|
||||
leftSlot: <Icon icon="download" />,
|
||||
onSelect: () =>
|
||||
importData.mutateAsync().catch((err) => {
|
||||
alert({
|
||||
title: 'Import Failed',
|
||||
body: err,
|
||||
});
|
||||
}),
|
||||
onSelect: () => importData.mutate(),
|
||||
},
|
||||
{
|
||||
key: 'export-data',
|
||||
|
||||
Reference in new issue
Block a user