From 0745ce22cb9f26190d98c854f10e916ae1b90e92 Mon Sep 17 00:00:00 2001 From: v1rtl Date: Tue, 27 Aug 2024 16:02:35 +0300 Subject: [PATCH 1/2] fix more tests --- .../src/components/atoms/DynamicPopover/DynamicPopover.tsx | 2 +- components/src/components/molecules/Select/Select.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/src/components/atoms/DynamicPopover/DynamicPopover.tsx b/components/src/components/atoms/DynamicPopover/DynamicPopover.tsx index ffa3f376..77baf442 100644 --- a/components/src/components/atoms/DynamicPopover/DynamicPopover.tsx +++ b/components/src/components/atoms/DynamicPopover/DynamicPopover.tsx @@ -218,7 +218,7 @@ export const DynamicPopover = ({ const isControlled = isOpen !== undefined - const [{ status: state }, toggle] = useTransition({ + const [state, toggle] = useTransition({ preEnter: true, exit: true, mountOnEnter: true, diff --git a/components/src/components/molecules/Select/Select.tsx b/components/src/components/molecules/Select/Select.tsx index a63ecc42..fbaa3b62 100644 --- a/components/src/components/molecules/Select/Select.tsx +++ b/components/src/components/molecules/Select/Select.tsx @@ -675,7 +675,7 @@ export const Select = React.forwardRef( maxInputSize, ) - const [{ status: state }, toggle] = useTransition({ + const [state, toggle] = useTransition({ timeout: { enter: 0, exit: 300, From ea67ccf5476b6d74ba1ee6ea3b723409db1ecdfb Mon Sep 17 00:00:00 2001 From: v1rtl Date: Tue, 27 Aug 2024 16:09:05 +0300 Subject: [PATCH 2/2] fix lint errors --- docs/src/components/PropsTable.tsx | 6 +++--- eslint.config.mjs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/components/PropsTable.tsx b/docs/src/components/PropsTable.tsx index 70e0137b..67825050 100644 --- a/docs/src/components/PropsTable.tsx +++ b/docs/src/components/PropsTable.tsx @@ -22,7 +22,7 @@ type Props = { const TableHead = ({ children, -}: React.PropsWithChildren<{ $i: number, $headers: string[] }>) => ( +}: React.PropsWithChildren) => ( @@ -94,8 +94,8 @@ export const PropsTable = ({ sourceLink, types }: Props) => { > - {headers.map((x, i) => ( - + {headers.map(x => ( + {x} ))} diff --git a/eslint.config.mjs b/eslint.config.mjs index 6532e8a3..68bbcc68 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -40,12 +40,12 @@ const baseConfig = tseslint.config( '@eslint-react/dom/no-missing-button-type': 'off', 'stylistic/no-multiple-empty-lines': ['error', { max: 1 }], '@typescript-eslint/no-explicit-any': 'off', + '@eslint-react/no-duplicate-key': 'warn', }, }, { files: ['docs/src/**/*.{ts,tsx}'], settings: { - next: { rootDir: 'docs', },