From eaa408f4e1d00774621c3e8cf8627b755105f551 Mon Sep 17 00:00:00 2001
From: Jannis Metrikat <120120832+jmetrikat@users.noreply.github.com>
Date: Sun, 9 Feb 2025 17:10:13 +0100
Subject: [PATCH] Fix lint and toast messages
---
src/components/ObjectActions.tsx | 8 ++++----
src/helpers/storage.ts | 5 +----
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/src/components/ObjectActions.tsx b/src/components/ObjectActions.tsx
index 21e4953..b9859d2 100644
--- a/src/components/ObjectActions.tsx
+++ b/src/components/ObjectActions.tsx
@@ -150,7 +150,7 @@ export default function ObjectActions({
}
await showToast({
style: Toast.Style.Success,
- title: "Move Up in Pinned",
+ title: "Moved Up in Pinned",
});
}
@@ -164,7 +164,7 @@ export default function ObjectActions({
await showToast({
style: Toast.Style.Success,
- title: "Move Down in Pinned",
+ title: "Moved Down in Pinned",
});
}
@@ -241,7 +241,7 @@ export default function ObjectActions({
{isPinned && (
@@ -249,7 +249,7 @@ export default function ObjectActions({
{isPinned && (
diff --git a/src/helpers/storage.ts b/src/helpers/storage.ts
index f54932d..6071c51 100644
--- a/src/helpers/storage.ts
+++ b/src/helpers/storage.ts
@@ -62,10 +62,7 @@ export async function removePinnedObject(
return;
}
- await LocalStorage.setItem(
- localStorageKeys.pinnedObjectsWith(pinSuffix),
- JSON.stringify(updatedPinnedObjects),
- );
+ await LocalStorage.setItem(localStorageKeys.pinnedObjectsWith(pinSuffix), JSON.stringify(updatedPinnedObjects));
await showToast({
style: Toast.Style.Success,