mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 19:35:10 +00:00
core: show Go users reward preview before applying
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
&:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user