-
Notifications
You must be signed in to change notification settings - Fork 235
fix: Editor mode shortcut keys not working #10515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,8 +29,6 @@ export const PagePathNavSticky = (props: PagePathNavLayoutProps): JSX.Element => | |
|
|
||
| const isPrinting = usePrintMode(); | ||
|
|
||
| const isPrinting = usePrintMode(); | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. isPrinting が二重に定義されていたので削除 |
||
|
|
||
| const pageControlsX = usePageControlsX(); | ||
| const [sidebarWidth] = useCurrentProductNavWidth(); | ||
| const { sidebarMode } = useSidebarMode(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| import type { JSX, ReactNode } from 'react'; | ||
|
|
||
| // biome-ignore lint/style/noRestrictedImports: ignore | ||
| import { usePrintMode } from '~/client/services/use-print-mode'; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. usePrintMode は最近実装された hook だと思うのですが Lint error が出ていました。 一旦 ignore させ CI 上でエラーを出さないようにしたのですがどのように対処するのがよいでしょうか?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. なるほど、悩ましい やりたいこととしては、print mode だったらサイドコンテンツがないときと同じように children のみをレンダリングさせたいんだけど、このままだと SSR でも import してしまうのであまりよくない かといってプログラマブルに制御するのをやめて、
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 後続ストーリー作っておいてほしい |
||
|
|
||
| import styles from './PageViewLayout.module.scss'; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useEditorMode は mutate を提供していない