This commit is contained in:
Nouman Tahir 2022-09-23 14:05:34 +05:00
parent 320de3310b
commit 9c959bbc05
4 changed files with 16 additions and 17 deletions

View File

@ -828,4 +828,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 0282022703ad578ab2d9afbf3147ba3b373b4311
COCOAPODS: 1.11.2
COCOAPODS: 1.11.3

View File

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

View File

@ -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 (
<Fragment>

View File

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