Skip to content

Commit

Permalink
change propType of the style
Browse files Browse the repository at this point in the history
  • Loading branch information
waterim committed Jun 29, 2023
1 parent d28b63c commit 0a771d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/signin/SignInPageLayout/BackgroundImage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ import DesktopBackgroundImage from '../../../../../assets/images/home-background

const defaultProps = {
isSmallScreen: false,
style: PropTypes.arrayOf(PropTypes.object),
style: [],
};

const propTypes = {
isSmallScreen: PropTypes.bool,
pointerEvents: PropTypes.string.isRequired,
width: PropTypes.number.isRequired,
// eslint-disable-next-line react/forbid-prop-types
style: PropTypes.arrayOf(PropTypes.object),
style: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
};
function BackgroundImage(props) {
return props.isSmallScreen ? (
Expand Down

0 comments on commit 0a771d9

Please sign in to comment.