From a698ca8116366abe47c46b341dfe1456f677b0de Mon Sep 17 00:00:00 2001 From: takahirohimi Date: Fri, 13 Sep 2024 10:42:15 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20PropsWithChildren=E3=82=92=E5=88=A9?= =?UTF-8?q?=E7=94=A8=E3=81=99=E3=82=8B=E6=9B=B8=E3=81=8D=E6=96=B9=E3=81=AB?= =?UTF-8?q?=E5=A4=89=E6=9B=B4=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/Experimental/SideMenu/SideMenu.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/smarthr-ui/src/components/Experimental/SideMenu/SideMenu.tsx b/packages/smarthr-ui/src/components/Experimental/SideMenu/SideMenu.tsx index e0ec29047c..3bf9d534ed 100644 --- a/packages/smarthr-ui/src/components/Experimental/SideMenu/SideMenu.tsx +++ b/packages/smarthr-ui/src/components/Experimental/SideMenu/SideMenu.tsx @@ -1,4 +1,4 @@ -import React, { ComponentPropsWithoutRef, FC, useMemo } from 'react' +import React, { ComponentPropsWithoutRef, FC, PropsWithChildren, useMemo } from 'react' import { tv } from 'tailwind-variants' import { Base } from '../../Base' @@ -7,9 +7,8 @@ const sideMenu = tv({ base: 'smarthr-ui-SideMenu shr-list-none shr-py-0.5', }) -type Props = Pick< - ComponentPropsWithoutRef, - 'radius' | 'layer' | 'className' | 'children' +type Props = PropsWithChildren< + Pick, 'radius' | 'layer' | 'className'> > & { /** * @default ul