Skip to content

【イベント】【間取り編集】選択している色のStateをJotaiに置き換え #269

@atomisu0312

Description

@atomisu0312

Which feature would you like to see added or improve
【イベント】

Describe the solution you'd like
選択している色(バッググラウンドも)のStateをJotaiに置き換え

TODO
流れをざっくり書いておく(あとでサブIssue化するのもあり)

  • JotaiによるState管理についてドキュメントを用意 #270
  • 既存ロジックの確認
  • storeの準備
  • 選択色に特化したカスタムフックの準備
  • ツール系(usePixelDraw, useCircleDraw, useTextAdd)から直接カスタムフックを呼び出す
  • パレットコンポーネント(ColorPalette, ColorSingleSelector)からカスタムフックを呼び出す
  • useCanvasDrawからのprops連鎖を除去
  • VenueToolSubMenuからのprops連鎖を除去
  • 残り(VenueEditorTemplate関連)のprops連鎖を抹消

Which directory to change
例:front/src/内でeventに紐づくもの全て

Describe alternatives you've considered
代替案があれば

Additional context
なし

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions