diff --git a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/PromptsContent.tsx b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/PromptsContent.tsx
index c2f9c7123..e8c45a31a 100644
--- a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/PromptsContent.tsx
+++ b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/PromptsContent.tsx
@@ -173,32 +173,32 @@ export function PromptsContent() {
-
- setFormData((p) => ({ ...p, is_public: checked }))}
- />
-
-
+
+ setFormData((p) => ({ ...p, is_public: checked }))}
+ />
+
+
-
-
-
-
+
+
+
+
)}
{prompts.length === 0 && !showForm && (
-
No custom prompts yet
+
No prompts yet
Create prompts to quickly transform or explore text with /
@@ -228,7 +228,9 @@ export function PromptsContent() {
)}
-
+
{prompt.prompt}
{prompt.prompt.length > 100 && (
@@ -247,7 +249,9 @@ export function PromptsContent() {
title={prompt.is_public ? "Make private" : "Share with community"}
onClick={async () => {
try {
- const updated = await promptsApiService.update(prompt.id, { is_public: !prompt.is_public });
+ const updated = await promptsApiService.update(prompt.id, {
+ is_public: !prompt.is_public,
+ });
setPrompts((prev) => prev.map((p) => (p.id === prompt.id ? updated : p)));
toast.success(updated.is_public ? "Shared with community" : "Made private");
} catch {
@@ -256,7 +260,11 @@ export function PromptsContent() {
}}
className="flex items-center justify-center size-7 rounded-md text-muted-foreground hover:text-foreground hover:bg-accent transition-colors"
>
- {prompt.is_public ? : }
+ {prompt.is_public ? (
+
+ ) : (
+
+ )}