Skip to content

Commit

Permalink
feat: Add diff icons (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm authored Jan 18, 2024
1 parent 74b5cb1 commit ccdc091
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/icons/DiffColumnIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import createIcon from './createIcon'

export default createIcon(({ size, color }) => (
<svg
width={size}
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M0.5 0.893311C0.225 0.893311 0 1.11831 0 1.39331C0 1.66831 0.225 1.89331 0.5 1.89331H6.5C6.775 1.89331 7 1.66831 7 1.39331C7 1.11831 6.775 0.893311 6.5 0.893311H0.5ZM0.5 4.89331C0.225 4.89331 0 5.11831 0 5.39331C0 5.66831 0.225 5.89331 0.5 5.89331H6.5C6.775 5.89331 7 5.66831 7 5.39331C7 5.11831 6.775 4.89331 6.5 4.89331H0.5ZM0 9.39331C0 9.66831 0.225 9.89331 0.5 9.89331H6.5C6.775 9.89331 7 9.66831 7 9.39331C7 9.11831 6.775 8.89331 6.5 8.89331H0.5C0.225 8.89331 0 9.11831 0 9.39331ZM0.5 12.8933C0.225 12.8933 0 13.1183 0 13.3933C0 13.6683 0.225 13.8933 0.5 13.8933H6.5C6.775 13.8933 7 13.6683 7 13.3933C7 13.1183 6.775 12.8933 6.5 12.8933H0.5ZM9 5.39331C9 5.66831 9.225 5.89331 9.5 5.89331H15.5C15.775 5.89331 16 5.66831 16 5.39331C16 5.11831 15.775 4.89331 15.5 4.89331H9.5C9.225 4.89331 9 5.11831 9 5.39331ZM9.5 0.893311C9.225 0.893311 9 1.11831 9 1.39331C9 1.66831 9.225 1.89331 9.5 1.89331H15.5C15.775 1.89331 16 1.66831 16 1.39331C16 1.11831 15.775 0.893311 15.5 0.893311H9.5ZM9 9.39331C9 9.66831 9.225 9.89331 9.5 9.89331H15.5C15.775 9.89331 16 9.66831 16 9.39331C16 9.11831 15.775 8.89331 15.5 8.89331H9.5C9.225 8.89331 9 9.11831 9 9.39331ZM9.5 12.8933C9.225 12.8933 9 13.1183 9 13.3933C9 13.6683 9.225 13.8933 9.5 13.8933H15.5C15.775 13.8933 16 13.6683 16 13.3933C16 13.1183 15.775 12.8933 15.5 12.8933H9.5Z"
fill={color}
/>
</svg>
))
15 changes: 15 additions & 0 deletions src/components/icons/DiffUnifiedIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import createIcon from './createIcon'

export default createIcon(({ size, color }) => (
<svg
width={size}
viewBox="0 0 16 16"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M0.5 1.28662C0.225 1.28662 0 1.51162 0 1.78662C0 2.06162 0.225 2.28662 0.5 2.28662H15.5C15.775 2.28662 16 2.06162 16 1.78662C16 1.51162 15.775 1.28662 15.5 1.28662H0.5ZM0.5 5.28662C0.225 5.28662 0 5.51162 0 5.78662C0 6.06162 0.225 6.28662 0.5 6.28662H15.5C15.775 6.28662 16 6.06162 16 5.78662C16 5.51162 15.775 5.28662 15.5 5.28662H0.5ZM0 9.78662C0 10.0616 0.225 10.2866 0.5 10.2866H15.5C15.775 10.2866 16 10.0616 16 9.78662C16 9.51162 15.775 9.28662 15.5 9.28662H0.5C0.225 9.28662 0 9.51162 0 9.78662ZM0.5 13.2866C0.225 13.2866 0 13.5116 0 13.7866C0 14.0616 0.225 14.2866 0.5 14.2866H15.5C15.775 14.2866 16 14.0616 16 13.7866C16 13.5116 15.775 13.2866 15.5 13.2866H0.5Z"
fill={color}
/>
</svg>
))
2 changes: 2 additions & 0 deletions src/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export { default as CreditCardIcon } from './components/icons/CreditCardIcon'
export { default as DashboardIcon } from './components/icons/DashboardIcon'
export { default as DatabaseIcon } from './components/icons/DatabaseIcon'
export { default as DeploymentIcon } from './components/icons/DeploymentIcon'
export { default as DiffColumnIcon } from './components/icons/DiffColumnIcon'
export { default as DiffUnifiedIcon } from './components/icons/DiffUnifiedIcon'
export { default as DiscordIcon } from './components/icons/DiscordIcon'
export { default as DockerTagIcon } from './components/icons/DockerTagIcon'
export { default as DocumentIcon } from './components/icons/DocumentIcon'
Expand Down

0 comments on commit ccdc091

Please sign in to comment.