Skip to content

Commit 28c3d25

Browse files
committed
fix: main image props
1 parent 4b8f1a8 commit 28c3d25

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/components/MainImage/index.stories.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ export const Default = Template.bind({});
1212

1313
Default.args = {
1414
backgroundImage: `https://images.unsplash.com/photo-1613487957484-32c977a8bd62?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1400&h=640&q=80`,
15+
string: `秋葉原`,
1516
};

src/components/MainImage/index.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ import { useStyles } from "./makeStyles";
33

44
type MainImageProps = {
55
backgroundImage: string;
6+
name: string;
67
};
78

89
function MainImage(props: MainImageProps) {
9-
const { backgroundImage } = props;
10+
const { backgroundImage, name } = props;
1011

1112
const { classes, cx } = useStyles({
1213
backgroundImage,
@@ -20,7 +21,7 @@ function MainImage(props: MainImageProps) {
2021
</div>
2122
<div className={cx(classes.mainCopy)}>
2223
<Typography variant="h1" className={cx(classes.text)}>
23-
秋葉原
24+
{name}
2425
</Typography>
2526
</div>
2627
</div>

0 commit comments

Comments
 (0)