From deef0ffb06f19dd3e5bb6a3863af51e812199ecf Mon Sep 17 00:00:00 2001 From: VH Date: Wed, 13 Sep 2023 10:04:15 +0700 Subject: [PATCH] rename to propTypes --- .../signin/SignInPageLayout/BackgroundImage/index.android.js | 2 +- src/pages/signin/SignInPageLayout/BackgroundImage/index.js | 2 +- .../BackgroundImage/{defaultPropTypes.js => propTypes.js} | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/pages/signin/SignInPageLayout/BackgroundImage/{defaultPropTypes.js => propTypes.js} (78%) diff --git a/src/pages/signin/SignInPageLayout/BackgroundImage/index.android.js b/src/pages/signin/SignInPageLayout/BackgroundImage/index.android.js index d8f59279ff1f..6ce60fc364fd 100644 --- a/src/pages/signin/SignInPageLayout/BackgroundImage/index.android.js +++ b/src/pages/signin/SignInPageLayout/BackgroundImage/index.android.js @@ -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 ( diff --git a/src/pages/signin/SignInPageLayout/BackgroundImage/index.js b/src/pages/signin/SignInPageLayout/BackgroundImage/index.js index f02818d3043f..710f7b373a81 100644 --- a/src/pages/signin/SignInPageLayout/BackgroundImage/index.js +++ b/src/pages/signin/SignInPageLayout/BackgroundImage/index.js @@ -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, diff --git a/src/pages/signin/SignInPageLayout/BackgroundImage/defaultPropTypes.js b/src/pages/signin/SignInPageLayout/BackgroundImage/propTypes.js similarity index 78% rename from src/pages/signin/SignInPageLayout/BackgroundImage/defaultPropTypes.js rename to src/pages/signin/SignInPageLayout/BackgroundImage/propTypes.js index 0f3292ce00e2..533d22ad12c5 100644 --- a/src/pages/signin/SignInPageLayout/BackgroundImage/defaultPropTypes.js +++ b/src/pages/signin/SignInPageLayout/BackgroundImage/propTypes.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; -const defaultPropTypes = { +const propTypes = { /** pointerEvents property to the SVG element */ pointerEvents: PropTypes.string.isRequired, @@ -8,4 +8,4 @@ const defaultPropTypes = { width: PropTypes.number.isRequired, }; -export default defaultPropTypes; +export default propTypes;