Skip to content

Commit 4aed1f9

Browse files
authored
Merge pull request #124 from scientist-softserv/93-blank-request
63 blank request
2 parents 6bbd893 + bd7577f commit 4aed1f9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/BlankRequestForm/BlankRequestForm.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const BlankRequestForm = ({ updateRequestForm }) => (
1111
type='text'
1212
as='textarea'
1313
rows={3}
14-
onChange={(e) => updateRequestForm(e.target.value, 'data.description')}
14+
onChange={(e) => updateRequestForm(e.target.value, 'description')}
1515
required
1616
/>
1717
<Form.Control.Feedback type='invalid'>
@@ -24,7 +24,7 @@ const BlankRequestForm = ({ updateRequestForm }) => (
2424
as='textarea'
2525
className='prevent-validation-styles'
2626
rows={3}
27-
onChange={(e) => updateRequestForm(e.target.value, 'data.timeline')}
27+
onChange={(e) => updateRequestForm(e.target.value, 'timeline')}
2828
/>
2929
</Form.Group>
3030
</Row>

src/compounds/ItemPage/ItemPage.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +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+
const styledImg = { width: 400, ...img }
1213

1314
return (
1415
<main className='container py-5'>
@@ -23,7 +24,7 @@ const ItemPage = ({ descriptionStyle, img, titleStyle, ware }) => {
2324
/>
2425
</Col>
2526
<Col xs={12} md={6} className='mt-4 mt-md-0 me-md-auto d-flex justify-content-start justify-content-md-end'>
26-
<Image {...img} addClass='img-fluid' />
27+
<Image {...styledImg} addClass='img-fluid' />
2728
</Col>
2829
</Row>
2930
</main>

0 commit comments

Comments
 (0)