mirror of
https://github.com/standardnotes/mobile.git
synced 2026-02-05 13:31:34 -05:00
refactor: stop using safeContent
This commit is contained in:
@@ -170,7 +170,7 @@ export const Root = (props: Props): JSX.Element | null => {
|
||||
}
|
||||
}
|
||||
if (
|
||||
note.safeContent.protected &&
|
||||
note.protected &&
|
||||
(await application?.privilegesService!.actionRequiresPrivilege(
|
||||
ProtectedAction.ViewProtectedNotes
|
||||
))
|
||||
|
||||
@@ -491,7 +491,7 @@ export const NoteSideMenu = (props: Props) => {
|
||||
{ text: 'Share', onSelect: shareNote, icon: ICON_SHARE },
|
||||
];
|
||||
|
||||
if (!note.safeContent.trashed) {
|
||||
if (!note.trashed) {
|
||||
rawOptions.push({
|
||||
text: 'Move to Trash',
|
||||
onSelect: async () => deleteNote(false),
|
||||
@@ -510,7 +510,7 @@ export const NoteSideMenu = (props: Props) => {
|
||||
onSelect: rawOption.onSelect,
|
||||
}));
|
||||
|
||||
if (note.safeContent.trashed) {
|
||||
if (note.trashed) {
|
||||
options = options.concat([
|
||||
{
|
||||
text: 'Restore',
|
||||
|
||||
Reference in New Issue
Block a user