mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
fix items showing incorrectly in Trash
This commit is contained in:
@@ -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 ? (
|
||||
<>
|
||||
<Text
|
||||
style={{
|
||||
color: colors.icon,
|
||||
fontSize: SIZE.xs - 1,
|
||||
textAlignVertical: 'center',
|
||||
fontFamily: WEIGHT.regular,
|
||||
}}>
|
||||
{'Deleted on: ' + item && item.dateDeleted
|
||||
? new Date(item.dateDeleted).toISOString().slice(0, 10)
|
||||
: null + ' '}
|
||||
</Text>
|
||||
<Text
|
||||
style={{
|
||||
color: colors.accent,
|
||||
@@ -188,7 +177,21 @@ export default class NoteItem extends React.Component {
|
||||
textAlignVertical: 'center',
|
||||
fontFamily: WEIGHT.regular,
|
||||
}}>
|
||||
{item.type[0].toUpperCase() + item.type.slice(1) + ' '}
|
||||
{item.itemType[0].toUpperCase() +
|
||||
item.itemType.slice(1) +
|
||||
' '}
|
||||
</Text>
|
||||
<Text
|
||||
style={{
|
||||
color: colors.icon,
|
||||
fontSize: SIZE.xs - 1,
|
||||
textAlignVertical: 'center',
|
||||
fontFamily: WEIGHT.regular,
|
||||
}}>
|
||||
Deleted on{' '}
|
||||
{item && item.dateDeleted
|
||||
? new Date(item.dateDeleted).toISOString().slice(0, 10)
|
||||
: null + ' '}
|
||||
</Text>
|
||||
</>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user