mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
fix(client): update 25 tier ab test (#62553)
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
This commit is contained in:
co-authored by
Huyen Nguyen
parent
d282d0aa64
commit
dd43d97924
@@ -83,7 +83,7 @@ function SelectionTabs({
|
||||
<Spacer size='xs' />
|
||||
<Tabs
|
||||
className={'donate-btn-group'}
|
||||
defaultValue={donationAmount.toString()}
|
||||
value={donationAmount.toString()}
|
||||
onValueChange={switchTab}
|
||||
>
|
||||
<TabsList className='nav-lists'>
|
||||
@@ -182,6 +182,10 @@ const MultiTierDonationForm: React.FC<MultiTierDonationFormProps> = ({
|
||||
|
||||
const [showDonateForm, setShowDonateForm] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setDonationAmount(replace20With25 ? defaultTierAmountB : defaultTierAmount);
|
||||
}, [replace20With25]);
|
||||
|
||||
useEffect(() => {
|
||||
if (setShowHeaderAndFooter) setShowHeaderAndFooter(!showDonateForm);
|
||||
}, [showDonateForm, setShowHeaderAndFooter]);
|
||||
|
||||
Reference in New Issue
Block a user