We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8e8f2 commit 44ffa87Copy full SHA for 44ffa87
src/SnipItsView.tsx
@@ -150,25 +150,6 @@ export const SnipItsView = ({ setActivePage }: { setActivePage: React.Dispatch<R
150
return matchesSearch && matchesFilters;
151
});
152
153
- const handleDelete = async (id: string) => {
154
- try {
155
- await fs.removeFile(`${collectionPath}/${id}.json`);
156
- await fetchSnippets(collectionPath);
157
- toast({
158
- title: "Deleted",
159
- description: "Snippet deleted.",
160
- });
161
- } catch (error) {
162
- console.error("Failed to delete snippet:", error);
163
164
- title: "Error",
165
- description: "Failed to delete snippet.",
166
- variant: "destructive",
167
168
- }
169
- };
170
-
171
172
const handleEditClick = (id: string) => {
173
setEditingSnippetId(id);
174
};
0 commit comments