Skip to content

Commit 8a72421

Browse files
committed
make path required to have pathname and query
1 parent 40ffc44 commit 8a72421

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/compounds/ItemGroup/ItemGroup.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ItemGroup.propTypes = {
5656
...Item.propTypes,
5757
imgProps: PropTypes.shape({}),
5858
style: PropTypes.shape({}),
59-
})),
59+
})).isRequired,
6060
isLoading: PropTypes.bool.isRequired,
6161
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
6262
withButtonLink: PropTypes.bool,
@@ -65,7 +65,6 @@ ItemGroup.propTypes = {
6565

6666
ItemGroup.defaultProps = {
6767
buttonProps: {},
68-
items: [{}],
6968
orientation: 'vertical',
7069
withButtonLink: false,
7170
withTitleLink: false,

src/compounds/LinkedButton/LinkedButton.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ const { onClick, ...remainingPropTypes } = Button.propTypes
3131
LinkedButton.propTypes = {
3232
buttonProps: PropTypes.shape(remainingPropTypes).isRequired,
3333
addClass: PropTypes.string,
34-
path: PropTypes.oneOfType([PropTypes.shape({
34+
path: PropTypes.shape({
3535
pathname: PropTypes.string.isRequired,
3636
query: PropTypes.shape({ id: PropTypes.number }),
37-
}), PropTypes.string]).isRequired,
37+
}).isRequired,
3838
}
3939

4040
LinkedButton.defaultProps = {

0 commit comments

Comments
 (0)