Skip to content

Commit bd2c620

Browse files
committed
fix: remove unnecessary G elements
1 parent 9f2ed4e commit bd2c620

3 files changed

Lines changed: 23 additions & 26 deletions

File tree

examples/SampleApp/src/icons/RightArrow.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,14 @@ export const RightArrow = ({
1818

1919
return (
2020
<Svg fill='none' height={height ?? size} viewBox='0 0 20 20' width={width ?? size} {...rest}>
21-
<G transform={I18nManager.isRTL ? 'matrix(-1 0 0 1 20 0)' : undefined}>
22-
<G transform='matrix(-1 0 0 1 20 0)'>
23-
<Path
24-
d='M16.875 10H3.125M3.125 10L8.75 4.375M3.125 10L8.75 15.625'
25-
stroke={color}
26-
strokeLinecap='round'
27-
strokeLinejoin='round'
28-
strokeWidth={1.5}
29-
/>
30-
</G>
21+
<G transform={I18nManager.isRTL ? undefined : 'matrix(-1 0 0 1 20 0)'}>
22+
<Path
23+
d='M16.875 10H3.125M3.125 10L8.75 4.375M3.125 10L8.75 15.625'
24+
stroke={color}
25+
strokeLinecap='round'
26+
strokeLinejoin='round'
27+
strokeWidth={1.5}
28+
/>
3129
</G>
3230
</Svg>
3331
);

examples/SampleApp/src/icons/Search.tsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ export const Search: React.FC<IconProps> = ({ fill, height = 24, scale = 1, widt
1515
viewBox={`0 0 ${vbWidth} ${height * scale}`}
1616
width={vbWidth}
1717
>
18-
<G transform={I18nManager.isRTL ? `matrix(-1 0 0 1 ${vbWidth} 0)` : undefined}>
19-
<G scale={scale}>
20-
<Path
21-
clipRule='evenodd'
22-
d='M11 2c4.968 0 9 4.032 9 9s-4.032 9-9 9-9-4.032-9-9 4.032-9 9-9zm0 16c3.867 0 7-3.133 7-7 0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7zm11.314 2.899l-2.829-2.828-1.414 1.414 2.828 2.829 1.415-1.415z'
23-
fill={fill || black}
24-
fillRule='evenodd'
25-
/>
26-
</G>
18+
<G scale={scale} transform={I18nManager.isRTL ? `matrix(-1 0 0 1 ${vbWidth} 0)` : undefined}>
19+
<Path
20+
clipRule='evenodd'
21+
d='M11 2c4.968 0 9 4.032 9 9s-4.032 9-9 9-9-4.032-9-9 4.032-9 9-9zm0 16c3.867 0 7-3.133 7-7 0-3.868-3.133-7-7-7-3.868 0-7 3.132-7 7 0 3.867 3.132 7 7 7zm11.314 2.899l-2.829-2.828-1.414 1.414 2.828 2.829 1.415-1.415z'
22+
fill={fill || black}
23+
fillRule='evenodd'
24+
/>
2725
</G>
2826
</Svg>
2927
);

package/src/icons/video-fill.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ export const Recorder = ({ fill, height, pathFill, size, stroke, width, ...props
1010

1111
return (
1212
<Svg viewBox='0 0 20 20' fill='none' height={height ?? size} width={width ?? size} {...props}>
13-
<G transform={I18nManager.isRTL ? 'matrix(-1 0 0 1 20 0)' : undefined}>
14-
<G clipPath='url(#clip0_recorder)'>
15-
<Path
16-
d='M15 5.625V14.375C15 14.7065 14.8683 15.0245 14.6339 15.2589C14.3995 15.4933 14.0815 15.625 13.75 15.625H2.5C2.16848 15.625 1.85054 15.4933 1.61612 15.2589C1.3817 15.0245 1.25 14.7065 1.25 14.375V5.625C1.25 5.29348 1.3817 4.97554 1.61612 4.74112C1.85054 4.5067 2.16848 4.375 2.5 4.375H13.75C14.0815 4.375 14.3995 4.5067 14.6339 4.74112C14.8683 4.97554 15 5.29348 15 5.625ZM19.5312 5.64453C19.4431 5.62295 19.3513 5.62029 19.2621 5.63672C19.1728 5.65315 19.088 5.68829 19.0133 5.73984L16.3891 7.48906C16.3463 7.51762 16.3112 7.55631 16.2869 7.6017C16.2626 7.64708 16.25 7.69776 16.25 7.74922V12.2508C16.25 12.3022 16.2626 12.3529 16.2869 12.3983C16.3112 12.4437 16.3463 12.4824 16.3891 12.5109L19.0281 14.2703C19.1269 14.3362 19.2424 14.3726 19.3611 14.3752C19.4798 14.3779 19.5968 14.3466 19.6984 14.2852C19.7924 14.2254 19.8695 14.1425 19.9223 14.0444C19.9751 13.9464 20.0019 13.8364 20 13.725V6.25C20.0001 6.11139 19.9541 5.97668 19.8692 5.86708C19.7843 5.75747 19.6655 5.67918 19.5312 5.64453Z'
17-
fill={color}
18-
/>
19-
</G>
13+
<G
14+
clipPath='url(#clip0_recorder)'
15+
transform={I18nManager.isRTL ? 'matrix(-1 0 0 1 20 0)' : undefined}
16+
>
17+
<Path
18+
d='M15 5.625V14.375C15 14.7065 14.8683 15.0245 14.6339 15.2589C14.3995 15.4933 14.0815 15.625 13.75 15.625H2.5C2.16848 15.625 1.85054 15.4933 1.61612 15.2589C1.3817 15.0245 1.25 14.7065 1.25 14.375V5.625C1.25 5.29348 1.3817 4.97554 1.61612 4.74112C1.85054 4.5067 2.16848 4.375 2.5 4.375H13.75C14.0815 4.375 14.3995 4.5067 14.6339 4.74112C14.8683 4.97554 15 5.29348 15 5.625ZM19.5312 5.64453C19.4431 5.62295 19.3513 5.62029 19.2621 5.63672C19.1728 5.65315 19.088 5.68829 19.0133 5.73984L16.3891 7.48906C16.3463 7.51762 16.3112 7.55631 16.2869 7.6017C16.2626 7.64708 16.25 7.69776 16.25 7.74922V12.2508C16.25 12.3022 16.2626 12.3529 16.2869 12.3983C16.3112 12.4437 16.3463 12.4824 16.3891 12.5109L19.0281 14.2703C19.1269 14.3362 19.2424 14.3726 19.3611 14.3752C19.4798 14.3779 19.5968 14.3466 19.6984 14.2852C19.7924 14.2254 19.8695 14.1425 19.9223 14.0444C19.9751 13.9464 20.0019 13.8364 20 13.725V6.25C20.0001 6.11139 19.9541 5.97668 19.8692 5.86708C19.7843 5.75747 19.6655 5.67918 19.5312 5.64453Z'
19+
fill={color}
20+
/>
2021
</G>
2122
<Defs>
2223
<ClipPath id='clip0_recorder'>

0 commit comments

Comments
 (0)