Skip to content

Commit bd7577f

Browse files
committed
rename the updated img on item page so lint is happy
1 parent 141fe7e commit bd7577f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compounds/ItemPage/ItemPage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Title from '../../components/Title/Title'
99
const ItemPage = ({ descriptionStyle, img, titleStyle, ware }) => {
1010
const { description, id, name, snippet, slug } = ware
1111
// sets a default width while still allowing width to be overridden
12-
img = { width: 400, ...img }
12+
const styledImg = { width: 400, ...img }
1313

1414
return (
1515
<main className='container py-5'>
@@ -24,7 +24,7 @@ const ItemPage = ({ descriptionStyle, img, titleStyle, ware }) => {
2424
/>
2525
</Col>
2626
<Col xs={12} md={6} className='mt-4 mt-md-0 me-md-auto d-flex justify-content-start justify-content-md-end'>
27-
<Image {...img} addClass='img-fluid' />
27+
<Image {...styledImg} addClass='img-fluid' />
2828
</Col>
2929
</Row>
3030
</main>

0 commit comments

Comments
 (0)