Skip to content

Commit

Permalink
fix: Remove link within link
Browse files Browse the repository at this point in the history
  • Loading branch information
LizBaker committed Oct 28, 2021
1 parent e0a97a9 commit bfb5ee6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 34 deletions.
4 changes: 3 additions & 1 deletion src/components/PackTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const PackTile = ({
level,
className,
summary,
href,
}) => {
const tessen = useTessen();

Expand Down Expand Up @@ -56,7 +57,7 @@ const PackTile = ({
return (
<Surface
as={Link}
to={fields?.slug || '/'}
to={href || fields?.slug || '/'}
key={id}
base={Surface.BASE.PRIMARY}
className={className}
Expand Down Expand Up @@ -168,6 +169,7 @@ PackTile.propTypes = {
level: PropTypes.string,
className: PropTypes.string,
featured: PropTypes.bool,
href: PropTypes.string,
};

export default PackTile;
55 changes: 22 additions & 33 deletions src/pages/instant-observability.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import QuickstartFilter from '../components/quickstarts/QuickstartFilter';
import {
SearchInput,
useTessen,
ExternalLink,
Button,
Link,
Icon,
Expand Down Expand Up @@ -706,44 +705,34 @@ const QuickstartsPage = ({ data, location }) => {
>
{filters?.length === 1 && filters[0] === 'documentation' ? (
// if data source filter is selected, display guided install
<ExternalLink
href={getGuidedInstallStackedNr1Url(NR1_GUIDED_INSTALL_NERDLET)}

<PackTile
id={RESERVED_QUICKSTART_IDS.GUIDED_INSTALL}
css={css`
text-decoration: none;
${view === VIEWS.GRID && `height: 100%;`}
background-color: var(--tertiary-background-color);
`}
>
<PackTile
id={RESERVED_QUICKSTART_IDS.GUIDED_INSTALL}
css={css`
${view === VIEWS.GRID && `height: 100%;`}
background-color: var(--tertiary-background-color);
`}
view={view}
logoUrl={GUIDED_INSTALL}
title="Guided Install"
summary="Not sure how to get started? We'll walk you through the process of instrumenting your environment so that you can monitor it."
/>
</ExternalLink>
href={getGuidedInstallStackedNr1Url(NR1_GUIDED_INSTALL_NERDLET)}
view={view}
logoUrl={GUIDED_INSTALL}
title="Guided Install"
summary="Not sure how to get started? We'll walk you through the process of instrumenting your environment so that you can monitor it."
/>
) : (
// else, display build your own quickstart
<ExternalLink
href={QUICKSTARTS_REPO}

<PackTile
id={RESERVED_QUICKSTART_IDS.BUILD_YOUR_OWN_QUICKSTART}
css={css`
text-decoration: none;
${view === VIEWS.GRID && `height: 100%;`}
background-color: var(--tertiary-background-color);
`}
>
<PackTile
id={RESERVED_QUICKSTART_IDS.BUILD_YOUR_OWN_QUICKSTART}
css={css`
${view === VIEWS.GRID && `height: 100%;`}
background-color: var(--tertiary-background-color);
`}
view={view}
logoUrl={BUILD_YOUR_OWN}
title="Build your own quickstart"
summary="Can't find a quickstart with what you need? Check out our README and build your own."
/>
</ExternalLink>
href={QUICKSTARTS_REPO}
view={view}
logoUrl={BUILD_YOUR_OWN}
title="Build your own quickstart"
summary="Can't find a quickstart with what you need? Check out our README and build your own."
/>
)}
{filteredQuickstarts.map((pack) => (
<PackTile
Expand Down

0 comments on commit bfb5ee6

Please sign in to comment.