-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat-684] updated icon component to use createSvgIcon
- Loading branch information
1 parent
0024e4b
commit 284e379
Showing
5 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
11 changes: 6 additions & 5 deletions
11
src/renderer/components/svgs/icons/compare-icon.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import { CSSProperties } from "react"; | ||
import { createSvgIcon } from "../svg-icon.type"; | ||
|
||
export function CompareIcon(props: Readonly<{ className?: string; style?: CSSProperties }>) { | ||
export const CompareIcon = createSvgIcon((props, ref) => { | ||
return ( | ||
<svg | ||
className={props.className} | ||
style={props.style} | ||
ref={ref} | ||
{...props} | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960" | ||
fill="currentColor" | ||
> | ||
<path d="M367-320H120q-17 0-28.5-11.5T80-360q0-17 11.5-28.5T120-400h247l-75-75q-11-11-11-27.5t11-28.5q12-12 28.5-12t28.5 12l143 143q6 6 8.5 13t2.5 15q0 8-2.5 15t-8.5 13L348-188q-12 12-28 11.5T292-189q-11-12-11.5-28t11.5-28l75-75Zm226-240 75 75q11 11 11 27.5T668-429q-12 12-28.5 12T611-429L468-572q-6-6-8.5-13t-2.5-15q0-8 2.5-15t8.5-13l144-144q12-12 28-11.5t28 12.5q11 12 11.5 28T668-715l-75 75h247q17 0 28.5 11.5T880-600q0 17-11.5 28.5T840-560H593Z" /> | ||
</svg> | ||
); | ||
} | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { CSSProperties } from "react"; | ||
import { createSvgIcon } from "../svg-icon.type"; | ||
|
||
export function DownIcon(props: Readonly<{ className?: string; style?: CSSProperties }>) { | ||
export const DownIcon = createSvgIcon((props, ref) => { | ||
return ( | ||
<svg | ||
className={props.className} | ||
style={props.style} | ||
ref={ref} | ||
{...props} | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960" | ||
fill="currentColor" | ||
> | ||
<path d="M440-313v-447q0-17 11.5-28.5T480-800q17 0 28.5 11.5T520-760v447l196-196q12-12 28-11.5t28 12.5q11 12 11.5 28T772-452L508-188q-6 6-13 8.5t-15 2.5q-8 0-15-2.5t-13-8.5L188-452q-11-11-11-27.5t11-28.5q12-12 28.5-12t28.5 12l195 195Z" /> | ||
</svg> | ||
); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
src/renderer/components/svgs/icons/remove-icon.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { CSSProperties } from "react"; | ||
import { createSvgIcon } from "../svg-icon.type" | ||
|
||
export function RemoveIcon(props: Readonly<{ className?: string; style?: CSSProperties }>) { | ||
export const RemoveIcon = createSvgIcon((props, ref) => { | ||
return ( | ||
<svg | ||
className={props.className} | ||
style={props.style} | ||
ref={ref} | ||
{...props} | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960" | ||
fill="currentColor" | ||
> | ||
<path d="M240-440q-17 0-28.5-11.5T200-480q0-17 11.5-28.5T240-520h480q17 0 28.5 11.5T760-480q0 17-11.5 28.5T720-440H240Z" /> | ||
</svg> | ||
) | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { CSSProperties } from "react"; | ||
import { createSvgIcon } from "../svg-icon.type"; | ||
|
||
export function UpIcon(props: Readonly<{ className?: string; style?: CSSProperties }>) { | ||
export const UpIcon = createSvgIcon((props, ref) => { | ||
return ( | ||
<svg | ||
className={props.className} | ||
style={props.style} | ||
ref={ref} | ||
{...props} | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 -960 960 960" | ||
fill="currentColor" | ||
> | ||
<path d="M440-647 244-451q-12 12-28 11.5T188-452q-11-12-11.5-28t11.5-28l264-264q6-6 13-8.5t15-2.5q8 0 15 2.5t13 8.5l264 264q11 11 11 27.5T772-452q-12 12-28.5 12T715-452L520-647v447q0 17-11.5 28.5T480-160q-17 0-28.5-11.5T440-200v-447Z" /> | ||
</svg> | ||
); | ||
} | ||
}); |