From 229a559aff3842ff8711bda7b7b3c526204ff673 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sun, 16 Aug 2026 23:16:29 +0200 Subject: [PATCH] fix: replace Workshop detail with import review --- .../src/components/workshop/workshop-install-button.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/nextjs/src/components/workshop/workshop-install-button.tsx b/apps/nextjs/src/components/workshop/workshop-install-button.tsx index b6ac5136a..c02fd1dd4 100644 --- a/apps/nextjs/src/components/workshop/workshop-install-button.tsx +++ b/apps/nextjs/src/components/workshop/workshop-install-button.tsx @@ -47,9 +47,10 @@ export function WorkshopInstallButton({ children, fullWidth }: WorkshopInstallBu const detailsModal = stack.register("details"); const reportModal = stack.register("report"); - const closeReview = () => { + const returnToDetails = () => { stack.close("review"); setPendingWidget(null); + stack.open("details"); }; return ( @@ -82,6 +83,7 @@ export function WorkshopInstallButton({ children, fullWidth }: WorkshopInstallBu }} onInstall={async (widget) => { setPendingWidget(widget); + stack.close("details"); stack.open("review"); }} /> @@ -96,7 +98,7 @@ export function WorkshopInstallButton({ children, fullWidth }: WorkshopInstallBu cancel: t("backToWidget"), confirm: t("install"), }} - onClose={closeReview} + onClose={returnToDetails} onImported={() => { stack.closeAll(); setPendingWidget(null);