Skip to content

Commit

Permalink
chore(ui): addicon codegen, diff icon (#3258)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-rasmussen authored Dec 17, 2024
1 parent 7d02770 commit 98feb8b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions weave-js/src/assets/icons/icon-diff.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions weave-js/src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ import {ReactComponent as ImportDatabaseArtifacts} from '../../assets/icons/icon
import {ReactComponent as ImportDate} from '../../assets/icons/icon-date.svg';
import {ReactComponent as ImportDelete} from '../../assets/icons/icon-delete.svg';
import {ReactComponent as ImportDiamond} from '../../assets/icons/icon-diamond.svg';
import {ReactComponent as ImportDiff} from '../../assets/icons/icon-diff.svg';
import {ReactComponent as ImportDiscordSocial} from '../../assets/icons/icon-discord-social.svg';
import {ReactComponent as ImportDockerWhale} from '../../assets/icons/icon-docker-whale.svg';
import {ReactComponent as ImportDocument} from '../../assets/icons/icon-document.svg';
Expand Down Expand Up @@ -453,6 +454,9 @@ export const IconDelete = (props: SVGIconProps) => (
export const IconDiamond = (props: SVGIconProps) => (
<ImportDiamond {...updateIconProps(props)} />
);
export const IconDiff = (props: SVGIconProps) => (
<ImportDiff {...updateIconProps(props)} />
);
export const IconDiscordSocial = (props: SVGIconProps) => (
<ImportDiscordSocial {...updateIconProps(props)} />
);
Expand Down Expand Up @@ -1145,6 +1149,7 @@ const ICON_NAME_TO_ICON: Record<IconName, ElementType> = {
date: IconDate,
delete: IconDelete,
diamond: IconDiamond,
diff: IconDiff,
'discord-social': IconDiscordSocial,
'docker-whale': IconDockerWhale,
document: IconDocument,
Expand Down
1 change: 1 addition & 0 deletions weave-js/src/components/Icon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export {
IconDate,
IconDelete,
IconDiamond,
IconDiff,
IconDiscordSocial,
IconDockerWhale,
IconDocument,
Expand Down
1 change: 1 addition & 0 deletions weave-js/src/components/Icon/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const IconNames = {
Date: 'date',
Delete: 'delete',
Diamond: 'diamond',
Diff: 'diff',
DiscordSocial: 'discord-social',
DockerWhale: 'docker-whale',
Document: 'document',
Expand Down

0 comments on commit 98feb8b

Please sign in to comment.