Skip to content

Commit

Permalink
Show the divider when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
eason9487 committed Aug 6, 2021
1 parent e7f5bf9 commit 3897636
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions js/src/components/contact-information/phone-number-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,11 @@ function PhoneNumberContent( {
function EditPhoneNumberCard( { phoneNumber, onPhoneNumberChange } ) {
const { loaded, data } = phoneNumber;
const phoneNumberContent = loaded ? (
<>
<CardDivider />
<PhoneNumberContent
initCountry={ data.country }
initNationalNumber={ data.nationalNumber }
onPhoneNumberChange={ onPhoneNumberChange }
/>
</>
<PhoneNumberContent
initCountry={ data.country }
initNationalNumber={ data.nationalNumber }
onPhoneNumberChange={ onPhoneNumberChange }
/>
) : (
<AppSpinner />
);
Expand All @@ -151,6 +148,7 @@ function EditPhoneNumberCard( { phoneNumber, onPhoneNumberChange } ) {
'google-listings-and-ads'
) }
>
<CardDivider />
{ phoneNumberContent }
</AccountCard>
);
Expand Down

0 comments on commit 3897636

Please sign in to comment.