Skip to content

Commit

Permalink
update formik, ts, format checkbox file, and update project .vscode s…
Browse files Browse the repository at this point in the history
…ettings
  • Loading branch information
kylemh committed Mar 15, 2024
1 parent 1505b73 commit b1a84bd
Show file tree
Hide file tree
Showing 4 changed files with 803 additions and 791 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
6 changes: 3 additions & 3 deletions components/Form/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Alert from 'components/Alert/Alert';
import Label from 'components/Form/Label/Label';
import styles from './Checkbox.module.css';

export type CheckboxPropsType = {
export interface CheckboxPropsType {
/**
* Applies a label that to the form input.
*/
Expand All @@ -25,7 +25,7 @@ export type CheckboxPropsType = {
* Passes an idea to the root input element.
*/
id?: string;
};
}

function Checkbox({
field: { name, value, ...field },
Expand All @@ -51,7 +51,7 @@ function Checkbox({
</Label>

<ErrorMessage name={name}>
{(message: string) => {
{message => {
return hasErrors ? (
<Alert className={styles.errorMessage} data-testid={CHECKBOX_ERROR} type="error">
{message}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"fast-xml-parser": "^3.21.1",
"fingerprintjs2": "^2.1.4",
"fontfaceobserver": "^2.3.0",
"formik": "^2.2.9",
"formik": "^2.4.5",
"history": "^5.3.0",
"intersection-observer": "^0.12.2",
"js-cookie": "^3.0.1",
Expand Down Expand Up @@ -169,7 +169,7 @@
"stylelint-config-standard": "^26.0.0",
"stylelint-prettier": "^2.0.0",
"tailwindcss": "^3.3.3",
"typescript": "^5.3.3",
"typescript": "^5.4.2",
"url-loader": "^4.1.1",
"vite-plugin-magical-svg": "^1.2.1",
"vite-tsconfig-paths": "^4.3.1",
Expand Down
Loading

0 comments on commit b1a84bd

Please sign in to comment.