Skip to content

Commit

Permalink
chore: Header内リンクのsuffixを非表示にする
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiM committed Jan 16, 2025
1 parent 55be29a commit 663ba74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions packages/smarthr-ui/src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const Logo = React.memo<
))

const MemoizedAppLauncher = React.memo<Pick<Props, 'featureName' | 'apps' | 'enableNew'>>(
({ featureName, apps, enableNew }) => {
({ featureName, apps = [], enableNew }) => {
const decorators = useMemo(() => {
if (!featureName) {
return undefined
Expand All @@ -137,9 +137,7 @@ const MemoizedAppLauncher = React.memo<Pick<Props, 'featureName' | 'apps' | 'ena
return { triggerLabel: () => featureName }
}, [featureName])

return (
featureName && <AppLauncher apps={apps || []} enableNew={enableNew} decorators={decorators} />
)
return featureName && <AppLauncher apps={apps} enableNew={enableNew} decorators={decorators} />
},
)

Expand Down
2 changes: 1 addition & 1 deletion packages/smarthr-ui/src/components/Header/HeaderLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ const headerLink = tv({
export const HeaderLink: React.FC<Props> = ({ enableNew, className, ...props }) => {
const style = headerLink({ enableNew, className })

return <TextLink {...props} target="_blank" className={style} />
return <TextLink {...props} target="_blank" suffix={null} className={style} />
}

0 comments on commit 663ba74

Please sign in to comment.