Skip to content

Commit ed2114c

Browse files
committed
SkipLink: Update to named export
1 parent e11c82a commit ed2114c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

client/components/SkipLink.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { render, screen, fireEvent } from '@testing-library/react';
22
import React from 'react';
33
import { useTranslation } from 'react-i18next';
44
import '@testing-library/jest-dom';
5-
import SkipLink from './SkipLink';
5+
import { SkipLink } from './SkipLink';
66

77
jest.mock('react-i18next', () => ({
88
useTranslation: () => ({

client/components/SkipLink.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface SkipLinkProps {
77
text: string;
88
}
99

10-
const SkipLink = ({ targetId, text }: SkipLinkProps) => {
10+
export const SkipLink = ({ targetId, text }: SkipLinkProps) => {
1111
const [focus, setFocus] = useState(false);
1212
const { t } = useTranslation();
1313
const handleFocus = () => {
@@ -30,5 +30,3 @@ const SkipLink = ({ targetId, text }: SkipLinkProps) => {
3030
</a>
3131
);
3232
};
33-
34-
export default SkipLink;

client/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Routing from './routes';
99
import ThemeProvider from './modules/App/components/ThemeProvider';
1010
import Loader from './modules/App/components/loader';
1111
import './i18n';
12-
import SkipLink from './components/SkipLink';
12+
import { SkipLink } from './components/SkipLink';
1313

1414
require('./styles/main.scss');
1515

0 commit comments

Comments
 (0)