Skip to content

Commit

Permalink
Pressify plug when WordPress.
Browse files Browse the repository at this point in the history
  • Loading branch information
soup-bowl committed Jul 5, 2023
1 parent 7436c4e commit e1d8870
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/inspectModules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { ServiceIcon } from ".";

interface Props {
details?: IInspectionDetails;
url?: string;
}

const DetailCard = ({ details }: Props) => {
const DetailCard = ({ details, url }: Props) => {
if (details === undefined || details === null) {
return (<></>);
}
Expand Down Expand Up @@ -37,6 +38,10 @@ const DetailCard = ({ details }: Props) => {
<Button href={details.url} target="_blank" rel="noopener">
Learn more
</Button>
{(url !== undefined && details.name === 'WordPress') &&
<Button href={`https://soupbowl.io/pressify/#/${url}`}>
Pressify
</Button>}
</CardActions>
</Card>
);
Expand Down
2 changes: 1 addition & 1 deletion src/pages/inspection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const InspectonResult = ({ url }: Props) => {
{siteDetails.map((jslib, i) => {
return (
<Grid key={i} item xs={12} md={6}>
<DetailCard details={jslib} />
<DetailCard details={jslib} url={url} />
</Grid>
);
})}
Expand Down

0 comments on commit e1d8870

Please sign in to comment.