Skip to content

Commit

Permalink
fix: remove unnecessary props
Browse files Browse the repository at this point in the history
  • Loading branch information
ryo-manba committed May 31, 2024
1 parent bd7f177 commit d5efeeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export default function App() {
isInvalid
label="Stay duration"
variant="bordered"
errorMessage="Please enter your stay duration"
errorMessage={(value) => {
if (value.isInvalid) {
return "Please enter your stay duration";
Expand Down
11 changes: 5 additions & 6 deletions packages/components/date-input/stories/time-input.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,11 @@ export const WithErrorMessageFunction = {
args: {
...defaultProps,
isInvalid: true,
errorMessage: "Please enter a valid time",
},
errorMessage: (value: ValidationResult) => {
if (value.isInvalid) {
return "Please enter a valid date";
}
errorMessage: (value: ValidationResult) => {
if (value.isInvalid) {
return "Please enter a valid date";
}
},
},
};

Expand Down

0 comments on commit d5efeeb

Please sign in to comment.