Skip to content

Commit

Permalink
fix(Checkbox,Radios): validation types naming convention (fixes #64) (#…
Browse files Browse the repository at this point in the history
…65)

Co-authored-by: Attila Csanyi <[email protected]>
  • Loading branch information
attilacsanyi and Attila Csanyi authored Jan 20, 2022
1 parent 1b762dc commit 6518073
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.DS_Store
node_modules
.cache
.history
dist
/src/*/*/__snapshots__/
/storybook-static/
4 changes: 2 additions & 2 deletions src/components/Checkbox/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type CheckboxValidate = {
export type ValidateCheckbox = {
required?: boolean;
};

Expand Down Expand Up @@ -41,5 +41,5 @@ export interface CheckboxProps {
/**
* You can validate your checkbox and switches
*/
validation?: CheckboxValidate;
validation?: ValidateCheckbox;
}
4 changes: 2 additions & 2 deletions src/components/Radios/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type RadiosValidate = {
export type ValidateRadios = {
required?: boolean;
};

Expand Down Expand Up @@ -26,5 +26,5 @@ export interface RadiosProps {
/**
* You can validate your radios
*/
validation?: RadiosValidate;
validation?: ValidateRadios;
}

0 comments on commit 6518073

Please sign in to comment.