From a61468ccaa861b6e47e5b93bdedf6e9c5dcb12bb Mon Sep 17 00:00:00 2001 From: Arek Nawo Date: Tue, 11 Jun 2024 13:11:25 +0200 Subject: [PATCH] fix: Snippets notifications --- apps/web/src/views/snippets/new-snippet-button.tsx | 4 ++-- apps/web/src/views/snippets/snippet-entry.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/web/src/views/snippets/new-snippet-button.tsx b/apps/web/src/views/snippets/new-snippet-button.tsx index 705a42f8..0b9b6800 100644 --- a/apps/web/src/views/snippets/new-snippet-button.tsx +++ b/apps/web/src/views/snippets/new-snippet-button.tsx @@ -24,10 +24,10 @@ const NewSnippetButton: Component = () => { setRenaming(contentGroup.id); setLoading(false); - notify({ text: "New content group created", type: "success" }); + notify({ text: "New snippet created", type: "success" }); } catch (error) { setLoading(false); - notify({ text: "Couldn't create new content group", type: "error" }); + notify({ text: "Couldn't create new snippet", type: "error" }); } }} > diff --git a/apps/web/src/views/snippets/snippet-entry.tsx b/apps/web/src/views/snippets/snippet-entry.tsx index b6b1dd3b..4a8def2b 100644 --- a/apps/web/src/views/snippets/snippet-entry.tsx +++ b/apps/web/src/views/snippets/snippet-entry.tsx @@ -56,9 +56,9 @@ const SnippetEntry: Component = (props) => { await client.snippets.delete.mutate({ id: props.snippet.id }); snippetsActions.deleteSnippet({ id: props.snippet.id }); setLoading(""); - notify({ text: "Content piece deleted", type: "success" }); + notify({ text: "Snippet deleted", type: "success" }); } catch (error) { - notify({ text: "Couldn't delete the content piece", type: "error" }); + notify({ text: "Couldn't delete the snippet", type: "error" }); setLoading(""); } }