Skip to content

Commit

Permalink
refactor: move track feather icon into own component
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Sep 4, 2020
1 parent 7bb142c commit 1b4d48d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 20 deletions.
21 changes: 7 additions & 14 deletions src/pages/nerd-days.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,23 +317,11 @@ const NerdDaysPage = () => {
>
<TrackItem
name="Observability"
icon={
<FeatherIcon
className={cx(styles.eyeIcon)}
name="eye"
size="87px"
/>
}
icon={<TrackFeatherIcon name="eye" size="87px" />}
/>
<TrackItem
name="Cloud migration"
icon={
<FeatherIcon
className={cx(styles.cloudMigrationIcon)}
name="upload-cloud"
size="87px"
/>
}
icon={<TrackFeatherIcon name="upload-cloud" size="87px" />}
/>
<TrackItem
name="Open source"
Expand Down Expand Up @@ -834,6 +822,11 @@ TrackItem.propTypes = {
name: PropTypes.string,
};

const TrackFeatherIcon = styled(FeatherIcon)`
stroke: url(#nerdDaysGradient);
stroke-width: 1.12px;
`;

const EngagementIcon = (props) => (
<Icon
size="1.25rem"
Expand Down
6 changes: 0 additions & 6 deletions src/pages/nerd-days.module.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.eyeIcon,
.cloudMigrationIcon {
stroke: url(#nerdDaysGradient);
stroke-width: 1.12px;
}

.agendaContainer {
max-width: 1000px;
margin: 0 auto;
Expand Down

0 comments on commit 1b4d48d

Please sign in to comment.