Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(weave): add spiral icon #3226

Merged
merged 6 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions weave-js/src/assets/icons/icon-spiral.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 @@ -206,6 +206,7 @@ import {ReactComponent as ImportSmoothing} from '../../assets/icons/icon-smoothi
import {ReactComponent as ImportSort} from '../../assets/icons/icon-sort.svg';
import {ReactComponent as ImportSortAscending} from '../../assets/icons/icon-sort-ascending.svg';
import {ReactComponent as ImportSortDescending} from '../../assets/icons/icon-sort-descending.svg';
import {ReactComponent as ImportSpiral} from '../../assets/icons/icon-spiral.svg';
import {ReactComponent as ImportSplit} from '../../assets/icons/icon-split.svg';
import {ReactComponent as ImportSquare} from '../../assets/icons/icon-square.svg';
import {ReactComponent as ImportStar} from '../../assets/icons/icon-star.svg';
Expand Down Expand Up @@ -892,6 +893,9 @@ export const IconSortAscending = (props: SVGIconProps) => (
export const IconSortDescending = (props: SVGIconProps) => (
<ImportSortDescending {...updateIconProps(props)} />
);
export const IconSpiral = (props: SVGIconProps) => (
<ImportSpiral {...updateIconProps(props)} />
);
export const IconSplit = (props: SVGIconProps) => (
<ImportSplit {...updateIconProps(props)} />
);
Expand Down Expand Up @@ -1262,6 +1266,7 @@ const ICON_NAME_TO_ICON: Record<IconName, ElementType> = {
sort: IconSort,
'sort-ascending': IconSortAscending,
'sort-descending': IconSortDescending,
spiral: IconSpiral,
split: IconSplit,
square: IconSquare,
star: IconStar,
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 @@ -206,6 +206,7 @@ export {
IconSort,
IconSortAscending,
IconSortDescending,
IconSpiral,
IconSplit,
IconSquare,
IconStar,
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 @@ -205,6 +205,7 @@ export const IconNames = {
Sort: 'sort',
SortAscending: 'sort-ascending',
SortDescending: 'sort-descending',
Spiral: 'spiral',
Split: 'split',
Square: 'square',
Star: 'star',
Expand Down
Loading