Skip to content

Commit

Permalink
feat: added sort by dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
josephgregoryii committed Dec 28, 2021
1 parent 9d86806 commit cb59548
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions src/pages/instant-observability.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
useTessen,
Button,
Icon,
Dropdown,
} from '@newrelic/gatsby-theme-newrelic';
import { navigate } from '@reach/router';

Expand All @@ -30,7 +31,6 @@ import CATEGORIES from '../data/instant-observability-categories';

import { getGuidedInstallStackedNr1Url } from '../utils/get-pack-nr1-url';
import SuperTiles from '../components/SuperTiles';
import { convertChangesToDMP } from 'diff';

const COLLAPSE_BREAKPOINT = '760px';

Expand Down Expand Up @@ -694,17 +694,34 @@ const QuickstartsPage = ({ data, location }) => {
<div
css={css`
padding: 1.25rem 0;
font-size: 0.9rem;
color: var(--secondary-text-color);
font-size: 16px;
color: var(--color-neutrals-800);
display: flex;
justify-content: space-between;
align-items: center;
align-text: center;
strong {
color: var(--color-neutrals-700);
}
`}
>
<span>
Showing {filteredQuickstarts.length} results for:{' '}
<strong>{search || getDisplayName()}</strong>
</span>
<div>HELLO</div>
<div>
<Dropdown align="left">
<Dropdown.Toggle variant={Button.VARIANT.NORMAL}>
sort state here
</Dropdown.Toggle>
<Dropdown.Menu>
<Dropdown.MenuItem>Item 1</Dropdown.MenuItem>
<Dropdown.MenuItem>Item 2</Dropdown.MenuItem>
<Dropdown.MenuItem>Item 3</Dropdown.MenuItem>
</Dropdown.Menu>
</Dropdown>
</div>
</div>
<div
css={css`
Expand Down

0 comments on commit cb59548

Please sign in to comment.