improved a lot of things

This commit is contained in:
SinachPat
2026-04-26 19:57:18 +01:00
parent bea934d124
commit 3d75fbe09d
12 changed files with 75 additions and 51 deletions
@@ -5,7 +5,6 @@ import { useFileTree, FileTree } from '@pierre/trees/react';
import { themeToTreeStyles } from '@pierre/trees';
import { SquareRegular } from '@fluentui/react-icons';
import { useCanvas } from '@/store/canvas';
import { useWorkspace } from '@/hooks/useWorkspace';
import { useArtboards } from '@/hooks/useArtboards';
const FILE_PATHS = [
@@ -48,9 +47,8 @@ const treeThemeStyles = themeToTreeStyles({
});
export function ArtboardNavigator() {
const { selectedArtboardId, selectArtboard } = useCanvas();
const { data: workspace } = useWorkspace();
const { artboards } = useArtboards(workspace?.id);
const { selectedArtboardId, selectArtboard, workspaceId } = useCanvas();
const { artboards } = useArtboards(workspaceId ?? undefined);
const { model } = useFileTree({
paths: FILE_PATHS,