Skip to content

Commit

Permalink
Merge pull request #96 from Orfium/feature/new-icon-refresh
Browse files Browse the repository at this point in the history
Feature/new icon refresh
  • Loading branch information
panvourtsis authored Oct 5, 2020
2 parents 7a6461b + 1558939 commit c504abd
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Icon/Icon.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ All the icons available for use.
<Preview>
<Story name="Icons Gallery">
<Stack>
{Object.keys(iconSelector).map((iconName) => (
{Object.keys(iconSelector).sort((a, b) => a.localeCompare(b)).map((iconName) => (
<PresentComponent name={iconName} width={150}>
<Icon name={iconName} color={'lightGray700'} />
</PresentComponent>
Expand Down
37 changes: 37 additions & 0 deletions src/components/Icon/__snapshots__/Icon.stories.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -3258,6 +3258,43 @@ exports[`Storyshots Design System/Icon Icons Gallery 1`] = `
</p>
</div>
</div>
<div
style={
Object {
"margin": 5,
}
}
>
<div
style={
Object {
"alignItems": "center",
"display": "flex",
"flexDirection": "column",
"justifyContent": "center",
"padding": "1rem",
"width": 150,
}
}
>
<span
className="css-1gnbc76-Icon"
>
<SvgrURL
className="css-hk02jy-Icon"
/>
</span>
<p
style={
Object {
"paddingTop": "8px",
}
}
>
refresh
</p>
</div>
</div>
<div
style={
Object {
Expand Down
2 changes: 2 additions & 0 deletions src/components/Icon/assets/iconSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import DotsVerticalIcon from './dots-vertical.svg';
import DownloadIcon from './download.svg';
import ErrorIcon from './error.svg';
import ExpensesIcon from './expenses.svg';
import RefreshIcon from './refresh.svg';
/**
* In the current design system the collection of "FatArrowIcon"
* has been renamed into "ArrowIcon" collection. For backwards
Expand Down Expand Up @@ -195,6 +196,7 @@ const iconSelector: { [key in AcceptedIconNames]: string } = {
userAvatar: UserAvatarIcon, // "user" copy (smaller)
writer: WriterIcon,
youtube: YoutubeIcon,
refresh: RefreshIcon,
};

export default iconSelector;
10 changes: 10 additions & 0 deletions src/components/Icon/assets/refresh.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/components/Icon/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,5 @@ export type AcceptedIconNames =
| 'user'
| 'userAvatar'
| 'writer'
| 'youtube';
| 'youtube'
| 'refresh';

0 comments on commit c504abd

Please sign in to comment.