Skip to content
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

右クリックメニュー(context menu)の動作改善 #88

Open
cateiru opened this issue Aug 11, 2021 · 1 comment
Open

右クリックメニュー(context menu)の動作改善 #88

cateiru opened this issue Aug 11, 2021 · 1 comment
Labels
Backlog やり残し

Comments

@cateiru
Copy link
Member

cateiru commented Aug 11, 2021

概要

現在のcontext menuはreact-contextmenuを使用しているが、このOSSはメンテナがいないため1年ほど前で開発が止まってしまっている。そのため、独自実装でcontextmenuコンポーネントを作りたい。
その際、メニューコンポーネントをchakra-uiのMenuを使用したい。

設計(案)

2つのコンポーネントを作る

  • ContextMenuTrigger
  • ContextMenu

Triggerからの状態管理はreact-contextmenuを元に作成する。
https://github.com/vkbansal/react-contextmenu/blob/master/src/actions.js

Triggerにid以外にdataを組み込み、複数のTriggerを1つのContextMenuで扱えるようにする。
dataはRecoilなどのグローバルステートを使用を想定。

2つのコンポーネントどちらもChakraのコンポーネントを継承し、cssをpropsで行えるようにする。

使用箇所

  • Dashboard
  • Edit
@cateiru cateiru added the Backlog やり残し label Aug 11, 2021
@cateiru cateiru self-assigned this Aug 11, 2021
@cateiru
Copy link
Member Author

cateiru commented Aug 20, 2021

@cateiru cateiru assigned hir0o and unassigned cateiru Sep 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backlog やり残し
Projects
None yet
Development

No branches or pull requests

2 participants