From 6b0dea084779f684e0141daff82e68c4ee39778f Mon Sep 17 00:00:00 2001 From: celine Date: Mon, 24 Nov 2025 17:00:56 -0500 Subject: [PATCH] refresh page on delete, fix text color on publish page --- actions/deleteLeaflet.ts | 2 ++ app/[leaflet_id]/publish/PublishPost.tsx | 5 ++--- components/ActionBar/Publications.tsx | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/actions/deleteLeaflet.ts b/actions/deleteLeaflet.ts index 5302b5c4..55534656 100644 --- a/actions/deleteLeaflet.ts +++ b/actions/deleteLeaflet.ts @@ -35,6 +35,8 @@ export async function deleteLeaflet(permission_token: PermissionToken) { .where(eq(permission_tokens.id, permission_token.id)); }); client.release(); + + refresh(); return; } diff --git a/app/[leaflet_id]/publish/PublishPost.tsx b/app/[leaflet_id]/publish/PublishPost.tsx index 570dfd4a..52ac63e9 100644 --- a/app/[leaflet_id]/publish/PublishPost.tsx +++ b/app/[leaflet_id]/publish/PublishPost.tsx @@ -94,7 +94,7 @@ const PublishPostForm = ( } return ( -
+

Publish Options

{ @@ -161,7 +161,6 @@ const PublishPostForm = ( />
- {/*
*/}
{props.title}
{props.description}
@@ -209,7 +208,7 @@ const PublishPostSuccess = (props: { return (
-

Published!

+

Published!

{ side="right" align="start" className="p-1! max-w-56" + asChild trigger={