diff --git a/src/components/draftListItem/view/draftListItemView.js b/src/components/draftListItem/view/draftListItemView.js index 6f20cfc9e..ebf6426cb 100644 --- a/src/components/draftListItem/view/draftListItemView.js +++ b/src/components/draftListItem/view/draftListItemView.js @@ -15,6 +15,7 @@ import { OptionsModal } from '../../atoms'; // Styles import styles from './draftListItemStyles'; import { ScheduledPostStatus } from '../../../providers/ecency/ecency.types'; +import { PopoverWrapper } from '../../popoverWrapper/popoverWrapperView'; // Defaults const DEFAULT_IMAGE = @@ -55,8 +56,16 @@ const DraftListItemView = ({ _isMounted = true; }; }, []); - // Component Functions + // consts + const scheduleStatus = + 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' }); const statusIcon = status === ScheduledPostStatus.PENDING ? 'timer' @@ -85,16 +94,18 @@ const DraftListItemView = ({ /> {isSchedules && ( - actionSheet.current.show()} - style={[styles.rightItem]} - color={statusIconColor} - disabled - /> + + actionSheet.current.show()} + style={[styles.rightItem]} + color={statusIconColor} + disabled + /> + )}