Skip to content

Commit

Permalink
Merge pull request #178 from newrelic/jerel/hide-time-picker
Browse files Browse the repository at this point in the history
Hide duration on guides when there is no duration specified
  • Loading branch information
jerelmiller authored Jun 18, 2020
2 parents 1e94565 + e20e8fe commit 837b3b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/templates/GuideTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ const GuideTemplate = ({ data }) => {
<SEO title={title} description={description} />
<div className={styles.header}>
<PageTitle>{title}</PageTitle>
<div className={styles.duration}>
<FeatherIcon name="clock" className={styles.clock} />
{duration}
</div>
{duration && (
<div className={styles.duration}>
<FeatherIcon name="clock" className={styles.clock} />
{duration}
</div>
)}
</div>
<div className={styles.mdxContainer}>
<MDXProvider components={components}>
Expand Down

0 comments on commit 837b3b6

Please sign in to comment.