Skip to content

Commit

Permalink
feat(component): add git icon
Browse files Browse the repository at this point in the history
ref: #18 #34
  • Loading branch information
jon-nfc committed Dec 11, 2024
1 parent 2cb7b6a commit 66ce5fd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/IconLoader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import TicketIncident from "./icons/TicketIncident";
import TicketProblem from "./icons/TicketProblem";
import TicketChange from "./icons/TicketChange";
import Documentation from "./icons/documentation";
import Git from "./icons/Git";


const icon_components = {
Expand All @@ -71,6 +72,7 @@ const icon_components = {
delete: DeleteIcon,
device: DeviceIcon,
edit: EditIcon,
git: Git,
help: HelpIcon,
history: HistoryIcon,
information: InformationIcon,
Expand Down
14 changes: 14 additions & 0 deletions src/components/icons/Git.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const Git = ({
width = '20px',
height = '20px',
fill = '#FFF'
}) => {

return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width={ width } height={ height } fill={ fill }>
<path d="M15.6979 7.28711L8.71226 0.3018C8.31016 -0.100594 7.65768 -0.100594 7.25502 0.3018L5.80457 1.75251L7.64462 3.59255C8.07224 3.44815 8.56264 3.54507 8.90339 3.8859C9.2462 4.22884 9.3423 4.72345 9.19416 5.15263L10.9677 6.92595C11.3969 6.77801 11.8917 6.87364 12.2345 7.21692C12.7133 7.69562 12.7133 8.47162 12.2345 8.95072C11.7553 9.42983 10.9795 9.42983 10.5001 8.95072C10.1399 8.59023 10.0508 8.06101 10.2335 7.61726L8.5793 5.96325V10.3157C8.69594 10.3735 8.80613 10.4505 8.90339 10.5475C9.38223 11.0263 9.38223 11.8022 8.90339 12.2817C8.42456 12.7604 7.64815 12.7604 7.16967 12.2817C6.69083 11.8022 6.69083 11.0263 7.16967 10.5475C7.28802 10.4293 7.42507 10.3399 7.5713 10.28V5.88728C7.42507 5.82742 7.28835 5.73874 7.16967 5.61971C6.80701 5.25717 6.71974 4.72481 6.90575 4.27937L5.09177 2.46512L0.301736 7.25474C-0.100579 7.65747 -0.100579 8.30995 0.301736 8.71233L7.28767 15.6977C7.68985 16.1 8.34213 16.1 8.74491 15.6977L15.6979 8.7447C16.1004 8.34225 16.1004 7.68944 15.6979 7.28711"/>
</svg>
);
}

export default Git

0 comments on commit 66ce5fd

Please sign in to comment.