Makes components itteratable

This commit is contained in:
Alicia Sykes
2023-06-28 05:57:50 +01:00
parent 595a6833db
commit c83419cfd2
11 changed files with 54 additions and 126 deletions

View File

@@ -14,11 +14,11 @@ img {
}
`;
const ScreenshotCard = (props: { screenshot: string }): JSX.Element => {
const ScreenshotCard = (screenshot: string): JSX.Element => {
return (
<Outer>
<Heading as="h3" align="left" color={colors.primary}>Screenshot</Heading>
<img src={props.screenshot} alt="Full page screenshot" />
<img src={screenshot} alt="Full page screenshot" />
</Outer>
);
}