Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
CR
Browse files Browse the repository at this point in the history
  • Loading branch information
khelif96 committed Nov 7, 2023
1 parent b2df574 commit d18b00a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const HistoryTableTestSearch: React.FC<HistoryTableTestSearchProps> = ({
label="Filter by Failed Tests"
aria-label="history-table-test-search-input"
placeholder="Search test name regex"
validatorErrorMessage="Invalid Regular Expression"
validatorErrorMessage="Invalid regular expression"
onSubmit={handleOnSubmit}
validator={validateRegexp}
clearOnSubmit
Expand Down
4 changes: 2 additions & 2 deletions src/components/TextInputWithValidation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type TextInputWithValidationProps = {
* `onSubmit` will be called when the user submits a new input with the enter key or the plus button
* if the input is valid
* @param value - the value of the input
* @returns
* @returns void
*/
onSubmit?: (value: string) => void;
validator?: (value: string) => boolean;
Expand All @@ -39,7 +39,7 @@ const TextInputWithValidation: React.FC<TextInputWithValidationProps> =
onChange = () => {},
onSubmit = () => {},
validator = () => true,
validatorErrorMessage = "",
validatorErrorMessage = "Invalid input",
...rest
} = props;

Expand Down

0 comments on commit d18b00a

Please sign in to comment.