diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.js index 7df02cd31..58e5b86e6 100644 --- a/apps/mobile/src/components/NoteItem/index.js +++ b/apps/mobile/src/components/NoteItem/index.js @@ -1,10 +1,10 @@ import React from 'react'; -import { Dimensions, Text, View } from 'react-native'; +import {Dimensions, Text, View} from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; -import { ActionIcon } from '../ActionIcon'; -import { ActionSheetEvent } from '../DialogManager/recievers'; -import {timeSince} from "../../utils/TimeUtils"; -import {ph, SIZE, WEIGHT} from "../../utils/SizeUtils"; +import {ActionIcon} from '../ActionIcon'; +import {ActionSheetEvent} from '../DialogManager/recievers'; +import {timeSince} from '../../utils/TimeUtils'; +import {ph, SIZE, WEIGHT} from '../../utils/SizeUtils'; const w = Dimensions.get('window').width; const h = Dimensions.get('window').height; @@ -170,17 +170,6 @@ export default class NoteItem extends React.Component { {isTrash ? ( <> - - {'Deleted on: ' + item && item.dateDeleted - ? new Date(item.dateDeleted).toISOString().slice(0, 10) - : null + ' '} - - {item.type[0].toUpperCase() + item.type.slice(1) + ' '} + {item.itemType[0].toUpperCase() + + item.itemType.slice(1) + + ' '} + + + Deleted on{' '} + {item && item.dateDeleted + ? new Date(item.dateDeleted).toISOString().slice(0, 10) + : null + ' '} ) : null} diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.js index 0cff68b9b..f8d186f32 100644 --- a/apps/mobile/src/components/SimpleList/index.js +++ b/apps/mobile/src/components/SimpleList/index.js @@ -147,6 +147,10 @@ const SimpleList = ({ dim.width = width; dim.height = 110 * fontScale; break; + case 'trash': + dim.width = width; + dim.height = 110 * fontScale; + break; case 'topic': dim.width = width; dim.height = 80 * fontScale; @@ -174,6 +178,7 @@ const SimpleList = ({ ); const _renderRow = (type, data, index) => { + switch (type) { case 'note': return ;