Skip to content

Commit 60c8912

Browse files
committed
CCM-10893 Fix additional export
1 parent 0d76c19 commit 60c8912

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

frontend/src/components/atoms/NHSNotifyBackLink/NHSNotifyBackLink.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
import React, { HTMLProps, ElementType, ReactNode } from 'react';
1+
import React, { HTMLProps } from 'react';
22
import classNames from 'classnames';
33

4-
interface NotifyBackLinkProps<T extends HTMLElement = HTMLAnchorElement>
5-
extends HTMLProps<T> {
6-
asElement?: ElementType;
4+
interface NotifyBackLinkProps extends HTMLProps<HTMLAnchorElement> {
5+
asElement?: React.ElementType;
76
className?: string;
8-
children: ReactNode;
7+
children: React.ReactNode;
98
}
109

11-
export function NotifyBackLink<T extends HTMLElement = HTMLAnchorElement>({
10+
function NotifyBackLink({
1211
asElement: Component = 'a',
1312
className,
1413
children,
1514
...rest
16-
}: NotifyBackLinkProps<T>) {
15+
}: NotifyBackLinkProps) {
1716
return (
1817
<Component className={classNames('nhsuk-back-link', className)} {...rest}>
1918
{children}

0 commit comments

Comments
 (0)