Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
benwolfram committed Jun 19, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 866ea94 commit ccb06b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editor/src/components/editor/canvas-toolbar-states.tsx
Original file line number Diff line number Diff line change
@@ -125,6 +125,10 @@ export function useToolbarMode(): ToolbarMode {
}
}

if (editorMode.type === 'panels') {
return { primary: 'panels' }
}

// Edit Mode
if (nothingSelected) {
return { primary: 'edit', secondary: 'nothing-selected' }
@@ -138,10 +142,6 @@ export function useToolbarMode(): ToolbarMode {
return { primary: 'edit', secondary: 'selected' }
}

if (editorMode.type === 'panels') {
return { primary: 'panels' }
}

return { primary: 'edit', secondary: 'nothing-selected' } // fallback - for now
}

0 comments on commit ccb06b7

Please sign in to comment.