Skip to content

Commit

Permalink
Fix lint and toast messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jmetrikat committed Feb 9, 2025
1 parent c0cda64 commit eaa408f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/components/ObjectActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default function ObjectActions({
}
await showToast({
style: Toast.Style.Success,
title: "Move Up in Pinned",
title: "Moved Up in Pinned",
});
}

Expand All @@ -164,7 +164,7 @@ export default function ObjectActions({

await showToast({
style: Toast.Style.Success,
title: "Move Down in Pinned",
title: "Moved Down in Pinned",
});
}

Expand Down Expand Up @@ -241,15 +241,15 @@ export default function ObjectActions({
{isPinned && (
<Action
icon={Icon.ArrowUp}
title="Move Up in Pinned"
title="Move Up in Pinned" // eslint-disable-line @raycast/prefer-title-case
shortcut={{ modifiers: ["opt", "cmd"], key: "arrowUp" }}
onAction={handleMoveUpInFavorites}
/>
)}
{isPinned && (
<Action
icon={Icon.ArrowDown}
title="Move Down in Pinned"
title="Move Down in Pinned" // eslint-disable-line @raycast/prefer-title-case
shortcut={{ modifiers: ["opt", "cmd"], key: "arrowDown" }}
onAction={handleMoveDownInFavorites}
/>
Expand Down
5 changes: 1 addition & 4 deletions src/helpers/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eaa408f

Please sign in to comment.