fix: replace Workshop detail with import review
This commit is contained in:
1 file changed
+4
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user