-
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
fix: Editor mode shortcut keys not working #10515
Conversation
|
|
||
| const isPrinting = usePrintMode(); | ||
|
|
||
| const isPrinting = usePrintMode(); |
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.
isPrinting が二重に定義されていたので削除
|
|
||
| const EditPage = (props) => { | ||
| const isEditable = useIsEditable(); | ||
| const { mutate: mutateEditorMode } = useEditorMode(); |
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 を提供していない
| import type { JSX, ReactNode } from 'react'; | ||
|
|
||
| // biome-ignore lint/style/noRestrictedImports: ignore | ||
| import { usePrintMode } from '~/client/services/use-print-mode'; |
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.
usePrintMode は最近実装された hook だと思うのですが Lint error が出ていました。
一旦 ignore させ CI 上でエラーを出さないようにしたのですがどのように対処するのがよいでしょうか?
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.
なるほど、悩ましい
やりたいこととしては、print mode だったらサイドコンテンツがないときと同じように children のみをレンダリングさせたいんだけど、このままだと SSR でも import してしまうのであまりよくない
かといってプログラマブルに制御するのをやめて、 div.grw-side-contents-container に d-print-none を設定して CSS 側で消すことにすると、そもそもの #10505 が直らない
(と、コード内コメントに書いておいた方がいいな)
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.
後続ストーリー作っておいてほしい
| import type { JSX, ReactNode } from 'react'; | ||
|
|
||
| // biome-ignore lint/style/noRestrictedImports: ignore | ||
| import { usePrintMode } from '~/client/services/use-print-mode'; |
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.
なるほど、悩ましい
やりたいこととしては、print mode だったらサイドコンテンツがないときと同じように children のみをレンダリングさせたいんだけど、このままだと SSR でも import してしまうのであまりよくない
かといってプログラマブルに制御するのをやめて、 div.grw-side-contents-container に d-print-none を設定して CSS 側で消すことにすると、そもそもの #10505 が直らない
(と、コード内コメントに書いておいた方がいいな)
| import type { JSX, ReactNode } from 'react'; | ||
|
|
||
| // biome-ignore lint/style/noRestrictedImports: ignore | ||
| import { usePrintMode } from '~/client/services/use-print-mode'; |
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.
後続ストーリー作っておいてほしい
|
This pull request has been removed from the queue for the following reason: The draft pull request cannot be created. If you want to requeue this pull request, you can post a |
Task
https://redmine.weseek.co.jp/issues/174327