From 2a31f70b4a038d955dcf04b5db20df024ce9d91a Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sat, 10 Jun 2023 12:25:03 +0500 Subject: [PATCH] mobile: fix compactMode indicators show always --- .../app/components/list-items/note/index.js | 88 ++++++++++--------- .../components/list-items/notebook/index.js | 31 ++++--- 2 files changed, 64 insertions(+), 55 deletions(-) diff --git a/apps/mobile/app/components/list-items/note/index.js b/apps/mobile/app/components/list-items/note/index.js index 9f0818da3..cd0bf9c78 100644 --- a/apps/mobile/app/components/list-items/note/index.js +++ b/apps/mobile/app/components/list-items/note/index.js @@ -298,7 +298,7 @@ const NoteItem = ({ {item.favorite ? ( - {item.conflicted ? ( - - ) : null} + {compactMode ? ( + <> + {item.conflicted ? ( + + ) : null} - {item.locked ? ( - - ) : null} + {item.locked ? ( + + ) : null} - {item.favorite ? ( - - ) : null} + {item.favorite ? ( + + ) : null} - + + + ) : null} - - {item && totalNotes > 1 - ? totalNotes + " notes" - : totalNotes === 1 - ? totalNotes + " note" - : "0 notes"} - + {compactMode ? ( + <> + + {item && totalNotes > 1 + ? totalNotes + " notes" + : totalNotes === 1 + ? totalNotes + " note" + : "0 notes"} + + + ) : null} +