Skip to content

Commit e019771

Browse files
refactor(table): add/replace missing 'type' in imports
1 parent 6849d7b commit e019771

File tree

7 files changed

+12
-15
lines changed

7 files changed

+12
-15
lines changed

src/shared/components/Table/Body/Line/Line.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Table as TableTk } from '@axa-fr/react-toolkit-all';
22
import { ComponentPropsWithoutRef } from 'react';
33
import Header from '../../Headers/Header';
44
import { type Tcol } from '../types';
5-
import Td, { TTdContainer } from './Td';
5+
import Td, { type TTdContainer } from './Td';
66

77
export type TLine = ComponentPropsWithoutRef<typeof TableTk.Tr> & {
88
columns: (TTdContainer & Tcol & { keyCol: string })[];

src/shared/components/Table/Headers/Header/Header.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { HelpInfo } from '@axa-fr/react-toolkit-all';
2-
import Th, { TTh } from './Th';
3-
import { THeader as Theaders } from './type';
2+
import Th, { type TTh } from './Th';
3+
import { type THeader } from './types';
44

55
export type THeaderProps = TTh &
6-
Omit<Theaders, 'key'> & {
6+
Omit<THeader, 'key'> & {
77
scope?: 'col' | 'row';
88
isBlank?: boolean;
99
};
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
export { default } from './Header';
2-
export type { THeaderProps } from './Header';
3-
export type { THeader } from './type';
1+
export { default, type THeaderProps } from './Header';
2+
export { type THeader } from './types';

src/shared/components/Table/Headers/Header/types.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ReactNode } from 'react';
1+
import { type ReactNode } from 'react';
22

33
export type THeader = {
44
key: string;

src/shared/components/Table/Headers/Headers.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Table as TableTk } from '@axa-fr/react-toolkit-all';
2-
import type { ReactNode } from 'react';
3-
import Header, { THeader } from './Header';
4-
import { TTh } from './Header/Th';
2+
import { type ReactNode } from 'react';
3+
import Header, { type THeader } from './Header';
4+
import { type TTh } from './Header/Th';
55

66
export type THeaders = TTh & {
77
headers?: THeader[];
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
export { default } from './Headers';
2-
export type { THeaders } from './Headers';
1+
export { default, type THeaders } from './Headers';

src/shared/components/Table/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ export { default as Line } from './Body/Line';
33
export { default as Td } from './Body/Line/Td';
44
export { default as Headers } from './Headers';
55
export { default as Header } from './Headers/Header';
6-
export { default as Th } from './Headers/Header/Th';
7-
export type { Torder } from './Headers/Header/Th';
6+
export { default as Th, type Torder } from './Headers/Header/Th';
87
export { default } from './Table.container';
98
export { ASCENDING, DESCENDING, NONE } from './constants';
109
export { setDisplay, setTextTooltip } from './formatDataTable';

0 commit comments

Comments
 (0)