Hacky Yaak import complete!

This commit is contained in:
Gregory Schier
2023-11-09 19:40:31 -08:00
parent 4306294a72
commit bf8aad04c7
15 changed files with 246 additions and 197 deletions

View File

@@ -14,15 +14,13 @@ export const SidebarActions = memo(function SidebarActions() {
return (
<HStack>
{hidden && (
<IconButton
onClick={toggle}
className="pointer-events-auto"
size="sm"
title="Show sidebar"
icon={hidden ? 'leftPanelHidden' : 'leftPanelVisible'}
/>
)}
<IconButton
onClick={toggle}
className="pointer-events-auto"
size="sm"
title="Show sidebar"
icon={hidden ? 'leftPanelHidden' : 'leftPanelVisible'}
/>
<Dropdown
items={[
{

View File

@@ -21,6 +21,7 @@ export const WorkspaceHeader = memo(function WorkspaceHeader({ className }: Prop
return (
<HStack
space={2}
justifyContent="center"
alignItems="center"
className={classNames(className, 'w-full h-full')}

View File

@@ -14,12 +14,12 @@ export function useExportData() {
return useMutation({
mutationFn: async () => {
const rootDir = await save(saveArgs);
if (rootDir == null) {
const exportPath = await save(saveArgs);
if (exportPath == null) {
return;
}
await invoke('export_data', { workspaceId, rootDir });
await invoke('export_data', { workspaceId, exportPath });
},
});
}