Skip to content

Commit 620f5c5

Browse files
committed
remove unused code
1 parent cbbd8e9 commit 620f5c5

File tree

1 file changed

+31
-33
lines changed

1 file changed

+31
-33
lines changed

packages/@mantine/core/src/components/SegmentedControl/SegmentedControl.tsx

+31-33
Original file line numberDiff line numberDiff line change
@@ -290,39 +290,37 @@ export const SegmentedControl = factory<SegmentedControlFactory>((_props, ref) =
290290
}
291291

292292
return (
293-
<>
294-
<Box
295-
{...getStyles('root')}
296-
variant={variant}
297-
size={size}
298-
ref={mergedRef}
299-
mod={[
300-
{
301-
'full-width': fullWidth,
302-
orientation,
303-
initialization: !initialized,
304-
'with-items-borders': withItemsBorders,
305-
},
306-
mod,
307-
]}
308-
{...others}
309-
role="radiogroup"
310-
>
311-
{typeof _value === 'string' && (
312-
<Box
313-
component="span"
314-
{...getStyles('indicator')}
315-
__vars={{
316-
'--sc-indicator-width': `${activePosition.width}px`,
317-
'--sc-indicator-height': `${activePosition.height}px`,
318-
'--sc-indicator-transform': `translate(${activePosition.translate[0]}px, ${activePosition.translate[1]}px)`,
319-
}}
320-
/>
321-
)}
322-
323-
{controls}
324-
</Box>
325-
</>
293+
<Box
294+
{...getStyles('root')}
295+
variant={variant}
296+
size={size}
297+
ref={mergedRef}
298+
mod={[
299+
{
300+
'full-width': fullWidth,
301+
orientation,
302+
initialization: !initialized,
303+
'with-items-borders': withItemsBorders,
304+
},
305+
mod,
306+
]}
307+
{...others}
308+
role="radiogroup"
309+
>
310+
{typeof _value === 'string' && (
311+
<Box
312+
component="span"
313+
{...getStyles('indicator')}
314+
__vars={{
315+
'--sc-indicator-width': `${activePosition.width}px`,
316+
'--sc-indicator-height': `${activePosition.height}px`,
317+
'--sc-indicator-transform': `translate(${activePosition.translate[0]}px, ${activePosition.translate[1]}px)`,
318+
}}
319+
/>
320+
)}
321+
322+
{controls}
323+
</Box>
326324
);
327325
});
328326

0 commit comments

Comments
 (0)