Skip to content

Commit

Permalink
rename to propTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangzinh committed Sep 13, 2023
1 parent 785cc20 commit deef0ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import AndroidBackgroundImage from '../../../../../assets/images/home-background--android.svg';
import styles from '../../../../styles/styles';
import defaultPropTypes from './defaultPropTypes';
import defaultPropTypes from './propTypes';

function BackgroundImage(props) {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/pages/signin/SignInPageLayout/BackgroundImage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
import MobileBackgroundImage from '../../../../../assets/images/home-background--mobile.svg';
import DesktopBackgroundImage from '../../../../../assets/images/home-background--desktop.svg';
import styles from '../../../../styles/styles';
import defaultPropTypes from './defaultPropTypes';
import defaultPropTypes from './propTypes';

const defaultProps = {
isSmallScreen: false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import PropTypes from 'prop-types';

const defaultPropTypes = {
const propTypes = {
/** pointerEvents property to the SVG element */
pointerEvents: PropTypes.string.isRequired,

/** The width of the image. */
width: PropTypes.number.isRequired,
};

export default defaultPropTypes;
export default propTypes;

0 comments on commit deef0ff

Please sign in to comment.