Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

[TEM-18] feat(Datepicker): add invalidInputMessage #160

Merged
merged 4 commits into from
Aug 26, 2020

Conversation

hrb-yamamoto-katsuya
Copy link
Contributor

@hrb-yamamoto-katsuya hrb-yamamoto-katsuya commented Aug 25, 2020

変更箇所スクリーンショット

スクリーンショット 2020-08-25 15 50 52

実装内容

その他

Comment on lines +38 to +42
const [invalidInput, setInvalidInput] = React.useState<InvalidInput>({
isInvalid: false,
message:
props.invalidInputMessage || '入力フォーマットが正しくありません'
})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

invalidInputに関する情報をobjectで一気に格納

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

messageには初期値を入れている。 入力フォーマットが正しくありません

@hrb-yamamoto-katsuya hrb-yamamoto-katsuya self-assigned this Aug 25, 2020
@hrb-yamamoto-katsuya hrb-yamamoto-katsuya marked this pull request as ready for review August 25, 2020 07:20
Copy link
Contributor

@hrb-suzuki-souma hrb-suzuki-souma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙆‍♂️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants