auto lint fix

This commit is contained in:
Sadaqat Ali 2022-09-28 11:51:32 +05:00
parent 92814d05f3
commit 2c9a8d9158
7 changed files with 38 additions and 14 deletions

View File

@ -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 (
<View style={[styles.wrapper, hasSeperator && styles.hasTopBorder]}>

View File

@ -16,7 +16,7 @@ export default EStyleSheet.create({
},
thumbnail: {
width: '$deviceWidth - 16',
height: 300
height: 300,
},
postDescripton: {
flexDirection: 'column',

View File

@ -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();

View File

@ -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;

View File

@ -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);
};

View File

@ -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));
}

View File

@ -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);
}