Skip to content

Commit 7f55ee2

Browse files
committed
feat(common): update node, big-design, and jest to latest
1 parent b9ee006 commit 7f55ee2

File tree

12 files changed

+15323
-1443
lines changed

12 files changed

+15323
-1443
lines changed

.github/workflows/validate-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [12.x, 14.x, 16.x]
19+
node-version: [14.x, 16.x, 18.x]
2020

2121
steps:
2222
- name: Checkout code

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
14

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This demo includes all of the files necessary to get started with a basic, hello
88

99
To get the app running locally, follow these instructions:
1010

11-
1. [Use Node 12+ and NPM 7+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm#checking-your-version-of-npm-and-node-js)
11+
1. [Use Node 14+ and NPM 7+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm#checking-your-version-of-npm-and-node-js)
1212
2. Install npm packages
1313
- `npm install`
1414
3. [Add and start ngrok.](https://www.npmjs.com/package/ngrok#usage) Note: use port 3000 to match Next's server.

components/form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Form = ({ formData, onCancel, onSubmit }: FormProps) => {
1919
const [errors, setErrors] = useState<StringKeyValue>({});
2020

2121
const handleChange = (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
22-
const { name: formName, value } = event?.target;
22+
const { name: formName, value } = event.target || {};
2323
setForm(prevForm => ({ ...prevForm, [formName]: value }));
2424

2525
// Add error if it exists in FormErrors and the input is empty, otherwise remove from errors
@@ -33,7 +33,7 @@ const Form = ({ formData, onCancel, onSubmit }: FormProps) => {
3333
};
3434

3535
const handleCheckboxChange = (event: ChangeEvent<HTMLInputElement>) => {
36-
const { checked, name: formName } = event?.target;
36+
const { checked, name: formName } = event.target || {};
3737
setForm(prevForm => ({ ...prevForm, [formName]: checked }));
3838
};
3939

components/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ const Header = () => {
5858
});
5959

6060
const items = [
61-
{ id: TabIds.HOME, title: 'Home' },
62-
{ id: TabIds.PRODUCTS, title: 'Products' },
61+
{ ariaControls: 'home', id: TabIds.HOME, title: 'Home' },
62+
{ ariaControls: 'products', id: TabIds.PRODUCTS, title: 'Products' },
6363
];
6464

6565
const handleTabClick = (tabId: string) => {

0 commit comments

Comments
 (0)