Skip to content

Commit

Permalink
Merge pull request #23 from DagsHub/add-icons
Browse files Browse the repository at this point in the history
adding 2 new icons
  • Loading branch information
elad-n authored Aug 23, 2023
2 parents 9acf43d + e117247 commit 320d000
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions src/components/icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ export const icons = {
</defs>
</svg>
),
redirect: ({ fill, width, height, onClick = () => {} }: IconProp) => (
'redirect': ({ fill, width, height, onClick = () => {} }: IconProp) => (
<svg
width={width}
height={height}
Expand Down Expand Up @@ -1660,7 +1660,7 @@ export const icons = {
/>
</svg>
),
beaker: ({ fill, width, height, onClick = () => {} }: IconProp) => (
'beaker': ({ fill, width, height, onClick = () => {} }: IconProp) => (
<svg
width={width}
height={height}
Expand Down Expand Up @@ -1729,7 +1729,7 @@ export const icons = {
/>
</svg>
),
annotations: ({ fill, width, height, onClick = () => {} }: IconProp) => (
'annotations': ({ fill, width, height, onClick = () => {} }: IconProp) => (
<svg
width={width}
height={height}
Expand All @@ -1745,7 +1745,25 @@ export const icons = {
/>
</g>
</svg>
)
),
'code-tags': ({ fill, width, height, onClick = () => {} }: IconProp) => (
<svg width={width} height={height} viewBox="0 0 16 16" fill={fill} xmlns="http://www.w3.org/2000/svg">
<g id="Icon/Solid/code">
<path id="Icon" fill-rule="evenodd" clip-rule="evenodd" d="M9.85297 2.44105C10.2721 2.58077 10.4987 3.03382 10.3589 3.45298L7.15893 13.053C7.01922 13.4721 6.56616 13.6987 6.14701 13.5589C5.72785 13.4192 5.50132 12.9662 5.64104 12.547L8.84104 2.94702C8.98076 2.52786 9.43381 2.30133 9.85297 2.44105ZM4.56567 5.03431C4.87809 5.34673 4.87809 5.85326 4.56567 6.16568L2.73136 8L4.56567 9.83431C4.87809 10.1467 4.87809 10.6533 4.56567 10.9657C4.25325 11.2781 3.74672 11.2781 3.4343 10.9657L1.0343 8.56568C0.721883 8.25326 0.721883 7.74673 1.0343 7.43431L3.4343 5.03431C3.74672 4.72189 4.25325 4.72189 4.56567 5.03431ZM11.4343 5.03431C11.7467 4.72189 12.2533 4.72189 12.5657 5.03431L14.9657 7.43431C15.2781 7.74673 15.2781 8.25326 14.9657 8.56568L12.5657 10.9657C12.2533 11.2781 11.7467 11.2781 11.4343 10.9657C11.1219 10.6533 11.1219 10.1467 11.4343 9.83431L13.2686 8L11.4343 6.16568C11.1219 5.85326 11.1219 5.34673 11.4343 5.03431Z" fill="#172D32"/>
</g>
</svg>

),
'sidebar-collapse': ({ fill, width, height, onClick = () => {} }: IconProp) => (
<svg width={width || 20} height={height || 20} viewBox="0 0 20 20" fill={fill} xmlns="http://www.w3.org/2000/svg">
<g id="Icon/Solid/Sidebar-Collapse">
<g id="Vector">
<path d="M6.177 9.823L8.573 7.427C8.60796 7.39195 8.65255 7.36806 8.7011 7.35838C8.74966 7.3487 8.79999 7.35365 8.84573 7.37261C8.89147 7.39157 8.93055 7.42368 8.95801 7.46487C8.98547 7.50607 9.00009 7.55449 9 7.604V12.396C9.00009 12.4455 8.98547 12.4939 8.95801 12.5351C8.93055 12.5763 8.89147 12.6084 8.84573 12.6274C8.79999 12.6464 8.74966 12.6513 8.7011 12.6416C8.65255 12.6319 8.60796 12.6081 8.573 12.573L6.177 10.177C6.15372 10.1538 6.13525 10.1262 6.12264 10.0958C6.11004 10.0654 6.10355 10.0329 6.10355 10C6.10355 9.96712 6.11004 9.93456 6.12264 9.90418C6.13525 9.87381 6.15372 9.84622 6.177 9.823Z" fill="#172D32"/>
<path d="M2 3.75C2 2.784 2.784 2 3.75 2H16.25C17.216 2 18 2.784 18 3.75V16.25C18 16.7141 17.8156 17.1592 17.4874 17.4874C17.1592 17.8156 16.7141 18 16.25 18H3.75C3.28587 18 2.84075 17.8156 2.51256 17.4874C2.18437 17.1592 2 16.7141 2 16.25V3.75ZM3.75 3.5C3.6837 3.5 3.62011 3.52634 3.57322 3.57322C3.52634 3.62011 3.5 3.6837 3.5 3.75V16.25C3.5 16.388 3.612 16.5 3.75 16.5H11.5V3.5H3.75ZM16.25 16.5C16.3163 16.5 16.3799 16.4737 16.4268 16.4268C16.4737 16.3799 16.5 16.3163 16.5 16.25V3.75C16.5 3.6837 16.4737 3.62011 16.4268 3.57322C16.3799 3.52634 16.3163 3.5 16.25 3.5H13V16.5H16.25Z" fill="#172D32"/>
</g>
</g>
</svg>
),
};

export type IconType = keyof typeof icons;
Expand Down

0 comments on commit 320d000

Please sign in to comment.