Skip to content

Commit 37999b9

Browse files
Merge pull request #399 from AccessibleForAll/chore/update-packages
Chore/update next and remove storybook
2 parents f5077b9 + 266d619 commit 37999b9

22 files changed

+7243
-30197
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
!.storybook

.eslintrc.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
2-
"extends": [
3-
"next/core-web-vitals",
4-
"prettier",
5-
"plugin:storybook/recommended",
6-
"plugin:@typescript-eslint/recommended"
7-
],
2+
"extends": ["next/core-web-vitals", "prettier", "plugin:@typescript-eslint/recommended"],
83
"rules": {
94
"comma-spacing": ["error", { "before": false, "after": true }],
105
"react/no-unescaped-entities": 0,

.storybook/main.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

.storybook/preview.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ This project is built with Next.JS, Typescript and CSS modules.
1414
Icons - [React Icons Documentation]( https://react-icons.github.io/react-icons)
1515
Code Snippets - [React Syntax Highlighter Documentation](https://github.com/react-syntax-highlighter/react-syntax-highlighter)
1616
Translations - [next-i18next Documentation](https://next.i18next.com/)
17-
Storybook - [Storybook Documentation](https://storybook.js.org/)
1817

1918
## How to contribute
2019

@@ -45,10 +44,6 @@ Storybook - [Storybook Documentation](https://storybook.js.org/)
4544
```bash
4645
yarn dev
4746
```
48-
If you are making an isolated component and wish to run storybook locally instead of the whole website run this instead of `yarn dev`:
49-
```bash
50-
yarn storybook
51-
```
5247

5348
10. Make your changes
5449
11. Stage your changes:

components/ContentTemplates/HeadingsTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from "next/image"
1+
import Image from "next/legacy/image"
22
import { NavPage } from "../NavPage/NavPage"
33
import { CodeBlock } from "../CodeBlock/CodeBlock"
44
import { headingsPageNavigation } from "../../data/pageNavigationLists"

components/ContentTemplates/ImagesTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from "next/image"
1+
import Image from "next/legacy/image"
22
import { NavPage } from "../NavPage/NavPage"
33
import { CodeBlock } from "../CodeBlock/CodeBlock"
44
import { imagePageNavigation } from "../../data/pageNavigationLists"

components/Footer/Footer.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export const Footer = () => {
88
<div className={styles.footerTop}>
99
<ul className={styles.footerList}>
1010
<li>
11-
<Link href="/about">
12-
<a className={styles.footerLink}>About the maintainers</a>
11+
<Link href="/about" className={styles.footerLink}>
12+
About the maintainers
1313
</Link>
1414
</li>
1515

@@ -35,10 +35,8 @@ export const Footer = () => {
3535
</a>
3636
</li>
3737
<li>
38-
<Link href="/">
39-
<a className={styles.footerLink}>
40-
Accessibility Statement - coming soon
41-
</a>
38+
<Link href="/" className={styles.footerLink}>
39+
Accessibility Statement - coming soon
4240
</Link>
4341
</li>
4442
</ul>

components/Nav/NavItem.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ export const NavItem = ({
1616
const isLinkActive = activeNavLink === page.href
1717
return (
1818
<li className={`${styles.navListItem} ${isLinkActive ? "active" : ""}`}>
19-
<Link href={page.href}>
20-
<a
21-
onClick={handleNavClick}
22-
aria-current={isLinkActive ? "page" : false}>
23-
{page.name}
24-
</a>
19+
<Link
20+
href={page.href}
21+
onClick={handleNavClick}
22+
aria-current={isLinkActive ? "page" : false}>
23+
{page.name}
2524
</Link>
2625
</li>
2726
)

0 commit comments

Comments
 (0)