Skip to content

Commit 3704f2b

Browse files
committed
remove default props for name and source since they are required
1 parent 21232af commit 3704f2b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/compounds/Item/Item.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Item.propTypes = {
9595
src: PropTypes.string.isRequired,
9696
alt: PropTypes.string,
9797
}).isRequired,
98-
name: PropTypes.string,
98+
name: PropTypes.string.isRequired,
9999
slug: PropTypes.string,
100100
}),
101101
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
@@ -117,10 +117,8 @@ Item.defaultProps = {
117117
description: '',
118118
id: null,
119119
img: {
120-
src: '',
121120
alt: '',
122121
},
123-
name: '',
124122
slug: '',
125123
},
126124
orientation: 'vertical',

src/compounds/LinkedButton/LinkedButton.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react'
22
import Link from 'next/link'
33
import PropTypes from 'prop-types'
4+
import Button from '../../components/Button/Button'
45
import './linked-button.css'
56

67
/**

0 commit comments

Comments
 (0)