Skip to content

Commit 4086a9c

Browse files
committed
reorder imports to non alphabetic
1 parent 9dbd221 commit 4086a9c

File tree

10 files changed

+18
-18
lines changed

10 files changed

+18
-18
lines changed

src/components/content-presentation/table/components/TablePanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { ComponentProps, FC, HTMLProps } from 'react';
1+
import React, { FC, ComponentProps, HTMLProps } from 'react';
22
import classNames from 'classnames';
33
import HeadingLevel from '@components/utils/HeadingLevel';
44

src/components/form-elements/checkboxes/components/Box.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
'use client';
22

33
import React, {
4+
FC,
5+
HTMLProps,
46
useContext,
57
ReactNode,
68
useEffect,
79
useState,
8-
FC,
9-
HTMLProps
1010
} from 'react';
1111
import classNames from 'classnames';
1212
import CheckboxContext, { ICheckboxContext } from '../CheckboxContext';

src/components/form-elements/date-input/components/IndividualDateInputs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use client';
2-
import React, { useContext, ChangeEvent, HTMLProps, FC } from 'react';
2+
import React, { FC, HTMLProps, useContext, ChangeEvent } from 'react';
33
import classNames from 'classnames';
44
import Label, { LabelProps } from '../../label/Label';
55
import DateInputContext, { IDateInputContext } from '../DateInputContext';

src/components/form-elements/radios/components/Radio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use client';
2-
import React, { FC, HTMLProps, ReactNode, useContext, useEffect, useState } from 'react';
2+
import React, { FC, HTMLProps, useContext, ReactNode, useEffect, useState } from 'react';
33
import classNames from 'classnames';
44
import { RadiosContext, IRadiosContext } from '../RadioContext';
55
import HintText, { HintTextProps } from '../../hint-text/HintText';

src/components/navigation/breadcrumb/Breadcrumb.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ import classNames from 'classnames';
33
import { AsElementLink } from '@util/types/LinkTypes';
44
import { childIsOfComponentType } from '@util/types/TypeGuards';
55

6-
type ItemProps = AsElementLink<'a'>;
6+
type Item = AsElementLink<'a'>;
77

8-
const Item: FC<ItemProps> = ({ className, children, asElement: Component = 'a', ...rest }) => (
8+
const Item: FC<Item> = ({ className, children, asElement: Component = 'a', ...rest }) => (
99
<li className="nhsuk-breadcrumb__item">
1010
<Component className={classNames('nhsuk-breadcrumb__link', className)} {...rest}>
1111
{children}
1212
</Component>
1313
</li>
1414
);
1515

16-
type BackProps = AsElementLink<'a'> & { accessiblePrefix?: string };
16+
type Back = AsElementLink<'a'> & { accessiblePrefix?: string };
1717

18-
const Back: FC<BackProps> = ({
18+
const Back: FC<Back> = ({
1919
className,
2020
children,
2121
asElement: Component = 'a',
@@ -30,14 +30,14 @@ const Back: FC<BackProps> = ({
3030
</p>
3131
);
3232

33-
type BreadcrumbProps = HTMLProps<HTMLDivElement>;
33+
type Breadcrumb = HTMLProps<HTMLDivElement>;
3434

3535
type SplitChildren = {
3636
ItemChildren: Array<ReactNode>;
3737
OtherChildren: Array<ReactNode>;
3838
};
3939

40-
const Breadcrumb: FC<BreadcrumbProps> & { Item: typeof Item; Back: typeof Back } = ({
40+
const Breadcrumb: FC<Breadcrumb> & { Item: typeof Item; Back: typeof Back } = ({
4141
className,
4242
children,
4343
'aria-label': ariaLabel = 'Breadcrumb',

src/components/navigation/card/components/CardLink.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React, { ElementType, FC } from 'react';
22
import classNames from 'classnames';
33
import { AsElementLink } from '@util/types/LinkTypes';
44

5-
interface CardLinkProps extends AsElementLink<React.ElementType> {
5+
interface CardLink extends AsElementLink<React.ElementType> {
66
className?: string;
77
}
88

9-
const CardLink: FC<CardLinkProps> = ({
9+
const CardLink: FC<CardLink> = ({
1010
className,
1111
asElement: Component = 'a',
1212
...rest

src/components/navigation/header/components/NavDropdownMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use client';
2-
import React, { useContext, useEffect, MouseEvent, FC, HTMLProps } from 'react';
2+
import React, { FC, HTMLProps, useContext, useEffect, MouseEvent } from 'react';
33
import HeaderContext, { IHeaderContext } from '../HeaderContext';
44
import { ChevronDown as ChevronDownIcon } from '@components/content-presentation/icons';
55

src/components/navigation/header/components/NavItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React, { FC } from 'react';
22
import classNames from 'classnames';
33
import { AsElementLink } from '@util/types/LinkTypes';
44

5-
export interface NavItemProps extends AsElementLink<'a'> {
5+
export interface NavItem extends AsElementLink<'a'> {
66
home?: boolean;
77
}
88

9-
const NavItem: FC<NavItemProps> = ({
9+
const NavItem: FC<NavItem> = ({
1010
home,
1111
className,
1212
children,

src/components/utils/SingleInputFormGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use client';
2-
import React, { useState, useEffect, useContext, HTMLProps, ReactNode } from 'react';
2+
import React, { ReactNode, useState, useEffect, HTMLProps, useContext } from 'react';
33
import classNames from 'classnames';
44
import HintText from '../form-elements/hint-text/HintText';
55
import ErrorMessage from '../form-elements/error-message/ErrorMessage';

src/patterns/nav-a-z/NavAZ.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FC, HTMLProps, ReactNode } from 'react';
1+
import React, { FC, HTMLProps, ReactNode } from 'react';
22
import classNames from 'classnames';
33
import { AsElementLink } from '@util/types/LinkTypes';
44

0 commit comments

Comments
 (0)