Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
fix: using the component for logo
Browse files Browse the repository at this point in the history
  • Loading branch information
zstix committed Jul 1, 2022
1 parent 65ee7d4 commit 4689710
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/components/LandingBanner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Breadcrumbs from '../Breadcrumbs';
import InstallButton from '../InstallButton';
import { css } from '@emotion/react';
import { quickstart } from '../../types';
import QuickstartImg from '../QuickstartImg';
import defaultImage from '../../images/defaultQuickstartImage.png';
import BannerBackground from './BannerBackground';

Expand Down Expand Up @@ -68,7 +69,7 @@ const LandingBanner = ({ quickstart, className, location }) => {
`}
>
<Breadcrumbs segments={breadcrumbs} />
{quickstart.logoUrl && (
{quickstart.logo && (
<div
css={css`
position: absolute;
Expand All @@ -90,9 +91,9 @@ const LandingBanner = ({ quickstart, className, location }) => {
}
`}
>
<img
src={quickstart.logoUrl}
alt={quickstart.title}
<QuickstartImg
packName={quickstart.name}
imageNode={quickstart.logo}
css={css`
max-width: 350px;
margin: auto;
Expand Down
4 changes: 2 additions & 2 deletions src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const quickstartDashboard = PropTypes.shape({
name: PropTypes.string.isRequired,
url: PropTypes.string,
description: PropTypes.string,
screenshots: PropTypes.arrayOf(PropTypes.string),
screenshots: PropTypes.arrayOf(PropTypes.any),
});

export const quickstartAlert = PropTypes.shape({
Expand Down Expand Up @@ -50,7 +50,7 @@ export const quickstart = PropTypes.shape({
authors: PropTypes.arrayOf(PropTypes.string).isRequired,
summary: PropTypes.string,
iconUrl: PropTypes.string,
logoUrl: PropTypes.string,
logo: PropTypes.any,
websiteUrl: PropTypes.string,
tags: PropTypes.arrayOf(PropTypes.string),
dashboards: PropTypes.arrayOf(quickstartDashboard),
Expand Down

0 comments on commit 4689710

Please sign in to comment.