A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix items showing incorrectly in Trash
ammarahm-ed3350f80eb0b4
diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.jsindex 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;@@ -172,23 +172,26 @@ export default class NoteItem extends React.Component {<><Textstyle={{- color: colors.icon,+ color: colors.accent,fontSize: SIZE.xs - 1,textAlignVertical: 'center',fontFamily: WEIGHT.regular,}}>- {'Deleted on: ' + item && item.dateDeleted- ? new Date(item.dateDeleted).toISOString().slice(0, 10)- : null + ' '}+ {item.itemType[0].toUpperCase() ++ item.itemType.slice(1) ++ ' '}</Text><Textstyle={{- color: colors.accent,+ color: colors.icon,fontSize: SIZE.xs - 1,textAlignVertical: 'center',fontFamily: WEIGHT.regular,}}>- {item.type[0].toUpperCase() + item.type.slice(1) + ' '}+ Deleted on{' '}+ {item && item.dateDeleted+ ? new Date(item.dateDeleted).toISOString().slice(0, 10)+ : null + ' '}</Text></>) : null}diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.jsindex 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 <RenderItem item={data} pinned={data.pinned} index={index} />;