From 2c9a8d9158d6b29213e757b72f8856e30fc3483f Mon Sep 17 00:00:00 2001 From: Sadaqat Ali <48380998+aliseyalvi@users.noreply.github.com> Date: Wed, 28 Sep 2022 11:51:32 +0500 Subject: [PATCH] auto lint fix --- .../containerHeader/view/containerHeaderView.js | 12 ++++++++++-- .../draftListItem/view/draftListItemStyles.js | 2 +- src/components/mainButton/view/mainButtonView.js | 12 ++++++++++-- src/components/tabBar/view/tabBarView.js | 9 +++++++-- src/screens/register/registerScreen.js | 3 +-- .../container/communitiesResultsContainer.js | 5 +++-- src/utils/postUrlParser.js | 9 ++++++--- 7 files changed, 38 insertions(+), 14 deletions(-) diff --git a/src/components/containerHeader/view/containerHeaderView.js b/src/components/containerHeader/view/containerHeaderView.js index 5516f1058..f040cb9d5 100644 --- a/src/components/containerHeader/view/containerHeaderView.js +++ b/src/components/containerHeader/view/containerHeaderView.js @@ -25,8 +25,16 @@ class ContainerHeaderView extends PureComponent { // Component Functions render() { - const { color, defaultTitle, fontSize, hasSeperator, iconName, isBoldTitle, title, isCenter } = - this.props; + const { + color, + defaultTitle, + fontSize, + hasSeperator, + iconName, + isBoldTitle, + title, + isCenter, + } = this.props; return ( diff --git a/src/components/draftListItem/view/draftListItemStyles.js b/src/components/draftListItem/view/draftListItemStyles.js index cd7420479..91fd4f7ef 100644 --- a/src/components/draftListItem/view/draftListItemStyles.js +++ b/src/components/draftListItem/view/draftListItemStyles.js @@ -16,7 +16,7 @@ export default EStyleSheet.create({ }, thumbnail: { width: '$deviceWidth - 16', - height: 300 + height: 300, }, postDescripton: { flexDirection: 'column', diff --git a/src/components/mainButton/view/mainButtonView.js b/src/components/mainButton/view/mainButtonView.js index 3f993939b..6f8098dc9 100644 --- a/src/components/mainButton/view/mainButtonView.js +++ b/src/components/mainButton/view/mainButtonView.js @@ -37,8 +37,16 @@ class MainButton extends Component { }; _getBody = () => { - const { isLoading, text, secondText, iconColor, iconName, source, iconType, textStyle } = - this.props; + const { + isLoading, + text, + secondText, + iconColor, + iconName, + source, + iconType, + textStyle, + } = this.props; if (isLoading) { this._getIndicator(); diff --git a/src/components/tabBar/view/tabBarView.js b/src/components/tabBar/view/tabBarView.js index 0c24fa345..7f5ec7b6e 100644 --- a/src/components/tabBar/view/tabBarView.js +++ b/src/components/tabBar/view/tabBarView.js @@ -56,8 +56,13 @@ class TabBar extends PureComponent { }; _renderUnderline = () => { - const { tabs, tabUnderlineDefaultWidth, tabUnderlineScaleX, scrollValue, underlineStyle } = - this.props; + const { + tabs, + tabUnderlineDefaultWidth, + tabUnderlineScaleX, + scrollValue, + underlineStyle, + } = this.props; const { activeColor } = this.state; const containerWidth = getWindowDimensions().nativeWidth; diff --git a/src/screens/register/registerScreen.js b/src/screens/register/registerScreen.js index 3a7b45374..a5f269df4 100644 --- a/src/screens/register/registerScreen.js +++ b/src/screens/register/registerScreen.js @@ -50,8 +50,7 @@ const RegisterScreen = ({ navigation, route }) => { }, []); const _handleEmailChange = (value) => { - const re = - /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; + const re = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; setIsEmailValid(re.test(value)); setEmail(value); }; diff --git a/src/screens/searchResult/screen/tabs/communities/container/communitiesResultsContainer.js b/src/screens/searchResult/screen/tabs/communities/container/communitiesResultsContainer.js index 1a5fb94d0..7308dd629 100644 --- a/src/screens/searchResult/screen/tabs/communities/container/communitiesResultsContainer.js +++ b/src/screens/searchResult/screen/tabs/communities/container/communitiesResultsContainer.js @@ -39,8 +39,9 @@ const CommunitiesResultsContainer = ({ children, searchValue }) => { // handle cache when searchResultsScreen data updates in communities reducer useEffect(() => { if (subscribingCommunitiesInSearchResultsScreen && selectedCommunityItem) { - const { status } = - subscribingCommunitiesInSearchResultsScreen[selectedCommunityItem.communityId]; + const { status } = subscribingCommunitiesInSearchResultsScreen[ + selectedCommunityItem.communityId + ]; if (status === statusMessage.SUCCESS) { dispatch(updateSubscribedCommunitiesCache(selectedCommunityItem)); } diff --git a/src/utils/postUrlParser.js b/src/utils/postUrlParser.js index 57be3466f..8ec2e354d 100644 --- a/src/utils/postUrlParser.js +++ b/src/utils/postUrlParser.js @@ -125,9 +125,12 @@ export default (url) => { } if ( - ['https://ecency.com', 'https://hive.blog', 'https://peakd.com', 'https://leofinance.io'].some( - (x) => url.startsWith(x), - ) + [ + 'https://ecency.com', + 'https://hive.blog', + 'https://peakd.com', + 'https://leofinance.io', + ].some((x) => url.startsWith(x)) ) { return parseAuthorPermlink(url); }