Skip to content

Commit

Permalink
chore: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiM committed Feb 18, 2025
1 parent 2362a5b commit 6341b21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import React, { type FC, Fragment, type PropsWithChildren, memo } from 'react'
import React, { type FC, type PropsWithChildren, memo, useMemo } from 'react'
import { tv } from 'tailwind-variants'

import { Text } from '../../../Text'
import { NavigationGroup, Navigation as NavigationType } from '../../types'
import { isChildNavigationGroup } from '../../utils'

import { NavigationItem } from './NavigationItem'

import type {
ChildNavigationGroup,
NavigationGroup,
Navigation as NavigationType,
} from '../../types'

type Props = {
navigations: NavigationType[] | NavigationGroup['childNavigations']
onClickNavigation: () => void
Expand Down Expand Up @@ -40,7 +45,7 @@ export const Navigation: FC<Props> = ({ navigations, onClickNavigation }) => (

const ItemGroup: FC<
Pick<Props, 'onClickNavigation'> & {
navigation: NavigationGroup['childNavigations'][number]
navigation: ChildNavigationGroup
separated: boolean
}
> = ({ navigation: { childNavigations, title }, onClickNavigation, separated }) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const NavigationButton: FC<
navigation.onClick(e)
onClickNavigation()
},
[navigation.onClick, onClickNavigation],
[navigation, onClickNavigation],
)

return (
Expand Down

0 comments on commit 6341b21

Please sign in to comment.