Skip to content

Commit fae9b6e

Browse files
committed
building without errors
1 parent 2421af2 commit fae9b6e

File tree

5 files changed

+23
-23
lines changed

5 files changed

+23
-23
lines changed

src/components/accordion-menu/components/Section.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React, { ReactNode, useState, MouseEvent, useEffect } from 'react';
1+
import React, { useState, MouseEvent, useEffect } from 'react';
22
import classNames from 'classnames';
33

44
export interface SectionProps extends React.HTMLProps<HTMLDetailsElement> {
5-
heading: ReactNode;
5+
heading: React.ReactNode;
66
defaultOpen?: boolean;
77
}
88

src/components/content-presentation/tabs/Tabs.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
'use client';
22
import classNames from 'classnames';
3-
import React, { FC, HTMLAttributes, useEffect } from 'react';
3+
import React, { useEffect } from 'react';
44
import HeadingLevel, { HeadingLevelType } from '@components/utils/HeadingLevel';
55
import TabsJs from '@resources/tabs';
66

7-
type TabsProps = HTMLAttributes<HTMLDivElement>;
7+
type TabsProps = React.HTMLAttributes<HTMLDivElement>;
88

99
type TabTitleProps = { children: React.ReactNode; headingLevel?: HeadingLevelType };
1010

@@ -22,35 +22,35 @@ type TabContentsProps = {
2222
children: React.ReactNode;
2323
};
2424

25-
const TabTitle: FC<TabTitleProps> = ({ children, headingLevel = 'h2' }) => (
25+
const TabTitle: React.FC<TabTitleProps> = ({ children, headingLevel = 'h2' }) => (
2626
<HeadingLevel className="nhsuk-tabs__title" headingLevel={headingLevel}>
2727
{children}
2828
</HeadingLevel>
2929
);
3030

31-
const TabList: FC<TabListProps> = ({ children }) => (
31+
const TabList: React.FC<TabListProps> = ({ children }) => (
3232
<ul className="nhsuk-tabs__list">{children}</ul>
3333
);
3434

35-
const TabListItem: FC<TabListItemProps> = ({ id, children }) => (
35+
const TabListItem: React.FC<TabListItemProps> = ({ id, children }) => (
3636
<li className="nhsuk-tabs__list-item">
3737
<a className="nhsuk-tabs__tab" href={`#${id}`}>
3838
{children}
3939
</a>
4040
</li>
4141
);
4242

43-
const TabContents: FC<TabContentsProps> = ({ id, children }) => (
43+
const TabContents: React.FC<TabContentsProps> = ({ id, children }) => (
4444
<div className="nhsuk-tabs__panel" id={id}>
4545
{children}
4646
</div>
4747
);
4848

49-
interface Tabs extends FC<TabsProps> {
50-
Title: FC<TabTitleProps>;
51-
List: FC<TabListProps>;
52-
ListItem: FC<TabListItemProps>;
53-
Contents: FC<TabContentsProps>;
49+
interface Tabs extends React.FC<TabsProps> {
50+
Title: React.FC<TabTitleProps>;
51+
List: React.FC<TabListProps>;
52+
ListItem: React.FC<TabListItemProps>;
53+
Contents: React.FC<TabContentsProps>;
5454
}
5555

5656
const Tabs: Tabs = ({ className, children, ...rest }) => {

src/components/header-with-logo/components/LocalNHSLogo.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { FC, useContext, SVGProps } from 'react';
1+
import React, { useContext, SVGProps } from 'react';
22
import classNames from 'classnames';
33
import HeaderContext, { IHeaderContext } from '../HeaderContext';
44
import { AsElementLink } from './LocalLinkTypes';
@@ -9,9 +9,9 @@ interface SVGImageWithSrc extends SVGProps<SVGImageElement> {
99

1010
export type NHSLogoNavProps = AsElementLink<HTMLAnchorElement>;
1111

12-
const SVGImageWithSrc: FC<SVGImageWithSrc> = (props) => <image {...props} />;
12+
const SVGImageWithSrc: React.FC<SVGImageWithSrc> = (props) => <image {...props} />;
1313

14-
const NHSLogo: FC<NHSLogoNavProps> = ({
14+
const NHSLogo: React.FC<NHSLogoNavProps> = ({
1515
className,
1616
alt = 'NHS Logo',
1717
asElement: Component = 'a',

src/components/header-with-logo/components/LocalOrganisationalLogo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import React, { FC, useContext } from 'react';
1+
import React, { useContext } from 'react';
22
import HeaderContext, { IHeaderContext } from '../HeaderContext';
33
import { AsElementLink } from './LocalLinkTypes';
44

55
export interface OrganisationalLogoProps extends AsElementLink<HTMLAnchorElement> {
66
logoUrl?: string;
77
}
88

9-
const OrganisationalLogo: FC<OrganisationalLogoProps> = ({
9+
const OrganisationalLogo: React.FC<OrganisationalLogoProps> = ({
1010
logoUrl,
1111
alt,
1212
asElement: Component = 'a',

src/components/timeline/components/Event.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React, { ReactNode } from 'react';
1+
import React from 'react';
22

33
export interface EventProps {
4-
title: ReactNode;
5-
instigator?: ReactNode;
4+
title: React.ReactNode;
5+
instigator?: React.ReactNode;
66
date: string;
7-
description?: Array<ReactNode>;
8-
action?: ReactNode;
7+
description?: Array<React.ReactNode>;
8+
action?: React.ReactNode;
99
}
1010

1111
const Event: React.FC<EventProps> = ({ title, instigator, date, description = [], action }) => (

0 commit comments

Comments
 (0)