Skip to content

Commit

Permalink
fix: ts issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ss-dimasm committed Dec 6, 2024
1 parent ff5c3c9 commit fd33319
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
17 changes: 4 additions & 13 deletions src/components/bottom-bar-item/bottom-bar-item.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
ElBottomBarItemBadge,
ElBottomBarItemContent,
ElBottomBarItemIcon,
ElBottomBarItemIconContent,
ElBottomBarItemLabel,
ElButtonBottomBarItemContainer,
} from './styles'
Expand Down Expand Up @@ -88,16 +87,12 @@ export const StyleAnchorUsage: Story = {
return (
<FlexContainer>
<ElAnchorBottomBarItemContainer href={args.href} aria-current={undefined} className="el-mr5">
<ElBottomBarItemIconContent>
<ElBottomBarItemIcon>{args?.icon}</ElBottomBarItemIcon>
</ElBottomBarItemIconContent>
<ElBottomBarItemIcon>{args?.icon}</ElBottomBarItemIcon>
<ElBottomBarItemLabel>{args?.children}</ElBottomBarItemLabel>
</ElAnchorBottomBarItemContainer>

<ElAnchorBottomBarItemContainer href={args.href} aria-current="page" className="el-mx5">
<ElBottomBarItemIconContent>
<ElBottomBarItemIcon>{args?.icon}</ElBottomBarItemIcon>
</ElBottomBarItemIconContent>
<ElBottomBarItemIcon>{args?.icon}</ElBottomBarItemIcon>
<ElBottomBarItemLabel>{args?.children}</ElBottomBarItemLabel>
</ElAnchorBottomBarItemContainer>

Expand All @@ -122,16 +117,12 @@ export const StyleButtonUsage: Story = {
return (
<FlexContainer>
<ElButtonBottomBarItemContainer onClick={action('handleClick')} aria-current={undefined} className="el-mr5">
<ElBottomBarItemIconContent>
<ElBottomBarItemIcon>{args?.icon}</ElBottomBarItemIcon>
</ElBottomBarItemIconContent>
<ElBottomBarItemIcon>{args?.icon}</ElBottomBarItemIcon>
<ElBottomBarItemLabel>{args?.children}</ElBottomBarItemLabel>
</ElButtonBottomBarItemContainer>

<ElButtonBottomBarItemContainer onClick={action('handleClick')} aria-current="true" className="el-mx5">
<ElBottomBarItemIconContent>
<ElBottomBarItemIcon>{args?.icon}</ElBottomBarItemIcon>
</ElBottomBarItemIconContent>
<ElBottomBarItemIcon>{args?.icon}</ElBottomBarItemIcon>
<ElBottomBarItemLabel>{args?.children}</ElBottomBarItemLabel>
</ElButtonBottomBarItemContainer>

Expand Down
1 change: 0 additions & 1 deletion src/components/bottom-bar-item/bottom-bar-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
ElBottomBarItemBadge,
ElBottomBarItemContent,
ElBottomBarItemIcon,
ElBottomBarItemIconContent,
ElBottomBarItemLabel,
ElButtonBottomBarItemContainer,
} from './styles'
Expand Down

0 comments on commit fd33319

Please sign in to comment.