core: show Go users reward preview before applying

This commit is contained in:
vimtor
2026-05-18 21:40:50 +02:00
parent 4479afcc47
commit 95417ffb33
2 changed files with 3 additions and 4 deletions

View File

@@ -227,11 +227,9 @@ export function GoReferralSection(props: { workspaceID: string; summary: GoRefer
<Show when={!applied} fallback={i18n.t("workspace.referral.reward.status.applied")}>
{pending
? i18n.t(rewardPendingStatusKey(reward.source))
: props.summary.hasActiveGo && !submission.pending
: props.summary.hasActiveGo
? i18n.t("workspace.referral.apply.preview")
: props.summary.hasActiveGo
? i18n.t("workspace.referral.apply.action")
: i18n.t("workspace.referral.apply.noGo")}
: i18n.t("workspace.referral.apply.noGo")}
</Show>
</button>
</td>

View File

@@ -25,6 +25,7 @@
&:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}