Skip to content

Commit

Permalink
Remove loading state for Features.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Jan 21, 2025
1 parent 7b2b622 commit 54f1a1f
Showing 1 changed file with 4 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,10 @@ export function CheckoutSummaryFeaturedList( {
? translate( 'WordPress.com Gift Subscription' )
: translate( 'Included with your purchase' ) }
</CheckoutSummaryFeaturesTitle>
{ isCartUpdating ? (
<LoadingCheckoutSummaryFeaturesList />
) : (
<CheckoutSummaryFeaturesWrapper
siteId={ siteId }
nextDomainIsFree={ responseCart.next_domain_is_free }
/>
) }
<CheckoutSummaryFeaturesWrapper
siteId={ siteId }
nextDomainIsFree={ responseCart.next_domain_is_free }
/>
</CheckoutSummaryFeatures>
{ ! isCartUpdating && ! hasRenewalInCart && ! isWcMobile && plan && hasMonthlyPlanInCart && (
<CheckoutSummaryAnnualUpsell plan={ plan } onChangeSelection={ onChangeSelection } />
Expand Down Expand Up @@ -232,16 +228,6 @@ function CheckoutSummaryPriceList() {
);
}

export function LoadingCheckoutSummaryFeaturesList() {
return (
<>
<LoadingCopy />
<LoadingCopy />
<LoadingCopy />
</>
);
}

function SwitchToAnnualPlan( {
plan,
onChangeSelection,
Expand Down Expand Up @@ -999,40 +985,6 @@ const CheckoutSummaryTotal = styled( CheckoutSummaryLineItem )`
}
`;

const LoadingCopy = styled.p`
animation: ${ pulse } 1.5s ease-in-out infinite;
background: ${ ( props ) => props.theme.colors.borderColorLight };
border-radius: 2px;
color: ${ ( props ) => props.theme.colors.borderColorLight };
content: '';
font-size: 14px;
height: 18px;
margin: 8px 0 0 26px;
padding: 0;
position: relative;
::before {
content: '';
display: block;
position: absolute;
left: -26px;
top: 0;
width: 18px;
height: 18px;
background: ${ ( props ) => props.theme.colors.borderColorLight };
border-radius: 100%;
}
.rtl & {
margin: 8px 26px 0 0;
::before {
right: -26px;
left: auto;
}
}
`;

const SwitchToAnnualPlanButton = styled.button`
text-align: left;
text-decoration: underline;
Expand Down

0 comments on commit 54f1a1f

Please sign in to comment.