From 9c959bbc05445168cc2f5c528492e055909abc16 Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Fri, 23 Sep 2022 14:05:34 +0500 Subject: [PATCH] lint --- ios/Podfile.lock | 2 +- .../draftListItem/view/draftListItemStyles.js | 2 +- .../draftListItem/view/draftListItemView.tsx | 23 +++++++++---------- src/providers/ecency/ecency.ts | 6 ++--- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/ios/Podfile.lock b/ios/Podfile.lock index ebc88464b..6a6f6c417 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -828,4 +828,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 0282022703ad578ab2d9afbf3147ba3b373b4311 -COCOAPODS: 1.11.2 +COCOAPODS: 1.11.3 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/draftListItem/view/draftListItemView.tsx b/src/components/draftListItem/view/draftListItemView.tsx index 60c5de868..f4a552d2d 100644 --- a/src/components/draftListItem/view/draftListItemView.tsx +++ b/src/components/draftListItem/view/draftListItemView.tsx @@ -3,6 +3,7 @@ import { View, Text, TouchableOpacity } from 'react-native'; import { injectIntl } from 'react-intl'; // Utils +import FastImage from 'react-native-fast-image'; import { getTimeFromNow } from '../../../utils/time'; // Components @@ -14,8 +15,6 @@ import { OptionsModal } from '../../atoms'; import styles from './draftListItemStyles'; import { ScheduledPostStatus } from '../../../providers/ecency/ecency.types'; import { PopoverWrapper } from '../../popoverWrapper/popoverWrapperView'; -import FastImage from 'react-native-fast-image'; - const DraftListItemView = ({ title, @@ -59,24 +58,24 @@ const DraftListItemView = ({ status === ScheduledPostStatus.PENDING ? intl.formatMessage({ id: 'schedules.pending' }) : status === ScheduledPostStatus.POSTPONED - ? intl.formatMessage({ id: 'schedules.postponed' }) - : status === ScheduledPostStatus.PUBLISHED - ? intl.formatMessage({ id: 'schedules.published' }) - : intl.formatMessage({ id: 'schedules.error' }); + ? intl.formatMessage({ id: 'schedules.postponed' }) + : status === ScheduledPostStatus.PUBLISHED + ? intl.formatMessage({ id: 'schedules.published' }) + : intl.formatMessage({ id: 'schedules.error' }); const statusIcon = status === ScheduledPostStatus.PENDING ? 'timer' : status === ScheduledPostStatus.POSTPONED - ? 'schedule' - : status === ScheduledPostStatus.PUBLISHED - ? 'check-circle' - : 'error'; + ? 'schedule' + : status === ScheduledPostStatus.PUBLISHED + ? 'check-circle' + : 'error'; const statusIconColor = status === ScheduledPostStatus.PUBLISHED ? '#4FD688' : status === ScheduledPostStatus.ERROR - ? '#e63535' - : '#c1c5c7'; + ? '#e63535' + : '#c1c5c7'; return ( diff --git a/src/providers/ecency/ecency.ts b/src/providers/ecency/ecency.ts index cc16601b0..df79f4626 100644 --- a/src/providers/ecency/ecency.ts +++ b/src/providers/ecency/ecency.ts @@ -417,9 +417,9 @@ export const getLeaderboard = async (duration: 'day' | 'week' | 'month') => { * @returns array of notifications */ export const getNotifications = async (data: { - filter?: NotificationFilters, - since?: string, - limit?: number, + filter?: NotificationFilters; + since?: string; + limit?: number; }) => { try { const response = await ecencyApi.post('/private-api/notifications', data);