Skip to content

Commit 0980b73

Browse files
committed
chore(dashboard): correct app version publication redirect, remove button variant redundancy
1 parent e4037ce commit 0980b73

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/apps/app-dashboard/src/components/developer-dashboard/app/wrappers/PublishAppVersionWrapper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ export function PublishAppVersionWrapper({ isAppPublished }: { isAppPublished: b
314314
});
315315
setIsPublishing(false);
316316

317-
// Navigate to same page after a delay to reload with published state
317+
// Navigate to version page after a delay
318318
setTimeout(() => {
319-
navigate(0); // Reloads current route
319+
navigate(`/developer/apps/appId/${appId}/version/${versionId}`);
320320
}, 2000);
321321
} catch (error) {
322322
console.error('Error publishing app version:', error);

packages/apps/app-dashboard/src/components/developer-dashboard/app/wrappers/ui/AppVersionPublishedButtons.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export function AppVersionPublishedButtons({
167167
{/* Set as Active Version Button - Only show when not active and enabled */}
168168
{!isActiveVersion && registryEnabled && (
169169
<ActionButton
170-
icon={actionSuccess === 'setActive' ? CheckCircle : CheckCircle}
170+
icon={CheckCircle}
171171
title={actionSuccess === 'setActive' ? 'Set as Active!' : 'Set as Active Version'}
172172
description={
173173
actionSuccess === 'setActive'
@@ -196,7 +196,7 @@ export function AppVersionPublishedButtons({
196196
onClick={() => handleVersionToggle(true)}
197197
isLoading={isLoading}
198198
disabled={actionSuccess === 'enable'}
199-
variant={actionSuccess === 'enable' ? 'success' : 'success'}
199+
variant="success"
200200
borderColor="rgb(134 239 172 / 0.3)"
201201
hoverBorderColor={theme.brandOrange}
202202
/>

0 commit comments

Comments
 (0)