Skip to content

Commit

Permalink
fix: fix type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Jan 16, 2024
1 parent 87090e7 commit 260b7c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Header/MenusComp/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Link } from 'react-router-dom'
import { FC, memo } from 'react'
import { FC, memo, PropsWithChildren } from 'react'
import { useTranslation } from 'react-i18next'
import { Dropdown } from 'antd'
import classNames from 'classnames'
Expand Down Expand Up @@ -75,7 +75,7 @@ const useMenuDataList = () => {
return list
}

const SubmenuDropdown: FC<{ menu: MenuData }> = ({ children, menu }) => {
const SubmenuDropdown: FC<PropsWithChildren<{ menu: MenuData }>> = ({ children, menu }) => {
return (
<Dropdown
overlay={
Expand Down

0 comments on commit 260b7c2

Please sign in to comment.