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 19, 2025
1 parent b38d5d0 commit 26ffe12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { type FC, type PropsWithChildren, memo, useMemo } from 'react'
import React, { type FC, type PropsWithChildren, type ReactNode, memo, useMemo } from 'react'
import { tv } from 'tailwind-variants'

import { AnchorButton, Button } from '../../../Button'
Expand Down Expand Up @@ -200,7 +200,7 @@ export const ActualUserInfo: FC<Omit<Props, 'arbitraryDisplayName'> & { displayN

const DropdownMenuLabel = memo<
Pick<Props, 'firstName' | 'lastName' | 'email'> & {
accountImageUrl: string
accountImageUrl?: string
currentTenantName: string
accountImageClassName: string
placeHolderImageClassName: string
Expand All @@ -215,7 +215,7 @@ const DropdownMenuLabel = memo<
accountImageClassName,
placeHolderImageClassName,
}) => {
const body = []
const body: ReactNode[] = []

if (currentTenantName) {
body.push(currentTenantName)
Expand Down Expand Up @@ -252,7 +252,7 @@ const DropdownMenuLabel = memo<

const UserSummaryStack = memo<
Pick<Props, 'empCode' | 'firstName' | 'lastName' | 'email'> & {
currentTenantName: string
currentTenantName: ReactNode
className: string
}
>(({ currentTenantName, empCode, firstName, lastName, email, className }) => (
Expand All @@ -276,7 +276,7 @@ const UserSummaryStack = memo<
</Stack>
))

const DropdownContentButton = memo<PropsWithChildren<{ href: string; className: string }>>(
const DropdownContentButton = memo<PropsWithChildren<{ href?: string | null; className: string }>>(
({ href, children, className }) =>
href && (
<AnchorButton
Expand All @@ -301,7 +301,7 @@ const DisplayNameDropdownTrigger = memo<PropsWithChildren<{ className: string }>
),
)

const AccountLink = memo<PropsWithChildren<{ href: string }>>(
const AccountLink = memo<PropsWithChildren<{ href?: string | null }>>(
({ href, children }) =>
href && (
<CommonButton
Expand Down
4 changes: 2 additions & 2 deletions packages/smarthr-ui/src/components/AppHeader/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ export type HeaderProps = ComponentProps<typeof Header> & {

export type Navigation = NavigationLink | NavigationCustomTag | NavigationButton | NavigationGroup

type NavigationLink = {
export type NavigationLink = {
children: ReactElement | string
href: string
current?: boolean
}

type NavigationCustomTag = {
export type NavigationCustomTag = {
children: ReactElement | string
elementAs: ComponentType<any>
current?: boolean
Expand Down

0 comments on commit 26ffe12

Please sign in to comment.