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

(ロジック)日付別に分かれている3つのタイトルコンポーネントを一つにする #72

Open
6 tasks
geyageya opened this issue Apr 6, 2022 · 0 comments
Labels
refactoring リファクタリング

Comments

@geyageya
Copy link
Collaborator

geyageya commented Apr 6, 2022

概要

・リファクタリング
・「今日する」「明日する」「今度する」というTitleの3コンポーネントを1つにする

画像 / URL

スクリーンショット 2022-04-06 18 42 46

タスク

注)以下は、リファクタリングの一案。他に適切な手順があれば、そちらを採用する

  • Title.tsxというコンポーネントファイルを作る。
  • TodayTitle.tsxのコードをTitle.tsxにコピーする。
  • コピーしたコードの内、日付毎に異なるデータを変数化する(そこにpropsデータが入る)
  • 3タイトルが使われていた3つのTodoコンポーネントを修正し、propsデータを追加する
  • TypeScript用の型情報を追加する
  • 不要となった日付別の3ファイルを削除する
@geyageya geyageya added the refactoring リファクタリング label Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring リファクタリング
Development

No branches or pull requests

1 participant