Skip to content

Commit a61468c

Browse files
committed
fix: Snippets notifications
1 parent 7f44781 commit a61468c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/web/src/views/snippets/new-snippet-button.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ const NewSnippetButton: Component = () => {
2424

2525
setRenaming(contentGroup.id);
2626
setLoading(false);
27-
notify({ text: "New content group created", type: "success" });
27+
notify({ text: "New snippet created", type: "success" });
2828
} catch (error) {
2929
setLoading(false);
30-
notify({ text: "Couldn't create new content group", type: "error" });
30+
notify({ text: "Couldn't create new snippet", type: "error" });
3131
}
3232
}}
3333
>

apps/web/src/views/snippets/snippet-entry.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ const SnippetEntry: Component<SnippetEntryProps> = (props) => {
5656
await client.snippets.delete.mutate({ id: props.snippet.id });
5757
snippetsActions.deleteSnippet({ id: props.snippet.id });
5858
setLoading("");
59-
notify({ text: "Content piece deleted", type: "success" });
59+
notify({ text: "Snippet deleted", type: "success" });
6060
} catch (error) {
61-
notify({ text: "Couldn't delete the content piece", type: "error" });
61+
notify({ text: "Couldn't delete the snippet", type: "error" });
6262
setLoading("");
6363
}
6464
}

0 commit comments

Comments
 (0)