Skip to content

Commit a96b168

Browse files
committed
fix lint issues
1 parent eb6a199 commit a96b168

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/react/src/SegmentedControl/SegmentedControl.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ describe('SegmentedControl', () => {
149149
{segmentData.map(({label, icon}) => (
150150
<SegmentedControl.IconButton icon={icon} aria-label={label} key={label} />
151151
))}
152-
</SegmentedControl>
152+
</SegmentedControl>,
153153
)
154154

155155
for (const datum of segmentData) {
@@ -166,7 +166,7 @@ describe('SegmentedControl', () => {
166166
{segmentData.map(({label, icon, description}) => (
167167
<SegmentedControl.IconButton icon={icon} aria-label={label} description={description} key={label} />
168168
))}
169-
</SegmentedControl>
169+
</SegmentedControl>,
170170
)
171171

172172
for (const datum of segmentData) {

packages/react/src/SegmentedControl/SegmentedControlIconButton.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ export const SegmentedControlIconButton: React.FC<React.PropsWithChildren<Segmen
5454
className={clsx(classes.Button, classes.IconButton)}
5555
{...rest}
5656
>
57-
<span className={clsx(classes.Content, 'segmentedControl-content')}>
58-
{isElement(Icon) ? Icon : <Icon />}
59-
</span>
57+
<span className={clsx(classes.Content, 'segmentedControl-content')}>{isElement(Icon) ? Icon : <Icon />}</span>
6058
</BoxWithFallback>
6159
</Tooltip>
6260
</BoxWithFallback>

0 commit comments

Comments
 (0)