Skip to content

Commit

Permalink
feat: remove unnecessary 'elementAs' check in button
Browse files Browse the repository at this point in the history
  • Loading branch information
masa0527 committed Sep 27, 2024
1 parent f3c33c3 commit 612d978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/smarthr-ui/src/components/AppNavi/AppNavi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const AppNavi: FC<Props & ElementProps> = ({
)
}

if ('href' in button || 'elementAs' in button) {
if ('href' in button) {
return (
<li key={i} className={listItemStyle}>
{/* eslint-disable-next-line smarthr/a11y-anchor-has-href-attribute */}
Expand Down

0 comments on commit 612d978

Please sign in to comment.