Skip to content

Commit

Permalink
fix(lint): fix some linting errors (#796)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan VACHERAT <[email protected]>
  • Loading branch information
fffan64 and Jonathan VACHERAT authored Jan 27, 2025
1 parent cc6eaa6 commit 5515a3f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/look-and-feel/react/src/Modal/Modal.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const DefaultModalStory: TDefaultModalStory = {
}}
onSubmit={(e) => {
args?.onSubmit?.(e as React.MouseEvent | React.KeyboardEvent);
console.log("submit the modal form");
// Submit the modal form
}}
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion slash/react/src/Form/Select/__tests__/Select.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe("Select", () => {
<Select
mode="default"
aria-label="select-default"
onChange={() => console.log("Some change")}
onChange={() => {}}
defaultValue="fun"
options={options}
/>,
Expand Down
2 changes: 1 addition & 1 deletion slash/react/src/Form/Select/__tests__/SelectInput.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe("SelectInput", () => {
<SelectInput
label="label select input"
aria-label="select-default"
onChange={() => console.log("Some change")}
onChange={() => {}}
defaultValue="fun"
options={options}
/>,
Expand Down
1 change: 0 additions & 1 deletion slash/react/src/Form/Textarea/Textarea.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,3 @@ export default TextareaInputReturn;
The component can be required. In that case, the label will be followed by a red asterisk. In order to make the component required, set the `required` prop to `true`.

Alternatively you can to add to the `classModifier` the value `required`. This behaviour exists to keep backward compatibility but might disapear in the future.

0 comments on commit 5515a3f

Please sign in to comment.