Skip to content

Commit

Permalink
feat: adding the alert types
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed Aug 24, 2021
1 parent 6d651f7 commit f35e5b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/components/quickstarts/QuickstartAlerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ const QuickstartAlerts = ({ quickstart }) => (
you know when something needs your attention.
</Intro>

<dl>
{quickstart.alerts.map((alert, index) => (
<div
key={index}
css={css`
margin-bottom: 1rem;
`}
>
<dt
css={css`
font-weight: bold;
`}
>
{alert.name}
</dt>
{alert.details && <dd>{alert.details}</dd>}
</div>
))}
</dl>
{quickstart.alerts.map((alert, index) => (
<div
key={index}
css={css`
margin-bottom: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--divider-color);
`}
>
<h3>{alert.name}</h3>
{alert.type && (
<>
<h4>Alert Type</h4>
<p>{alert.type}</p>
</>
)}
{alert.details && <p>{alert.details}</p>}
</div>
))}
</>
);

Expand Down
1 change: 1 addition & 0 deletions src/templates/QuickstartDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export const pageQuery = graphql`
details
name
url
type
}
authors
}
Expand Down

0 comments on commit f35e5b5

Please sign in to comment.