feat(app): add swift snippets and fix snippet color state bug

This commit is contained in:
rektdeckard
2024-02-03 01:37:57 -07:00
parent e865fb2aca
commit 188e3e88a6
4 changed files with 26 additions and 6 deletions

View File

@@ -54,6 +54,7 @@ const RENDERED_SNIPPETS = [
SnippetType.VUE,
SnippetType.FLUTTER,
SnippetType.ELM,
SnippetType.SWIFT,
];
enum CopyType {
@@ -186,7 +187,7 @@ const Panel = () => {
);
return [snippets, tabs];
}, [entry, weight, size, copied, isDark]);
}, [entry, weight, size, color, copied, isDark]);
useHotkeys("esc", () => setSelectionEntry(null));