-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Manage Panels to Toolbar (#6004)
**Problem:** We'd like to have a more prominent, easily-accessible way to manage panel visibility located in the toolbar **Fix:** As a v1, leveraging a lot of similarity to the insert mode's dropdown in the toolbar. Will iterate to use leverage a newly created button + dropdown menu component in the future. **Manual Tests:** I hereby swear that: - [x] I opened a hydrogen project and it loaded - [x] I could navigate to various routes in Preview mode Fixes #5892 --------- Co-authored-by: Balazs Bajorics <[email protected]>
- Loading branch information
1 parent
4eba85d
commit 21effe2
Showing
12 changed files
with
173 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
editor/src/components/canvas/controls/panels-mode/panels-mode-hooks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { MouseCallbacks } from '../select-mode/select-mode-hooks' | ||
import { NO_OP } from '../../../../core/shared/utils' | ||
|
||
const noop: MouseCallbacks = { | ||
onMouseMove: NO_OP, | ||
onMouseDown: NO_OP, | ||
onMouseUp: NO_OP, | ||
} | ||
|
||
export function usePanelsModeSelectAndHover(): MouseCallbacks { | ||
return noop | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.