Skip to content

Commit 21232af

Browse files
committed
linting
1 parent a44d5aa commit 21232af

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/compounds/LinkedButton/LinkedButton.jsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react'
22
import Link from 'next/link'
33
import PropTypes from 'prop-types'
4-
import Button from '../../components/Button/Button'
54
import './linked-button.css'
65

76
/**
@@ -28,6 +27,7 @@ const ButtonLinkWrapper = React.forwardRef(({ addClass, buttonProps, href }, ref
2827
))
2928

3029
const { onClick, ...remainingPropTypes } = Button.propTypes
30+
3131
LinkedButton.propTypes = {
3232
buttonProps: PropTypes.shape(remainingPropTypes).isRequired,
3333
addClass: PropTypes.string,
@@ -41,4 +41,16 @@ LinkedButton.defaultProps = {
4141
addClass: '',
4242
}
4343

44+
ButtonLinkWrapper.propTypes = {
45+
addClass: PropTypes.string,
46+
buttonProps: PropTypes.shape(remainingPropTypes).isRequired,
47+
href: PropTypes.string.isRequired,
48+
}
49+
50+
ButtonLinkWrapper.defaultProps = {
51+
addClass: '',
52+
}
53+
54+
ButtonLinkWrapper.displayName = 'Button Link Wrapper'
55+
4456
export default LinkedButton

0 commit comments

Comments
 (0)