File size: 1,547 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
import { Card } from '@automattic/components';
import PropTypes from 'prop-types';
import CreditCardFormFieldsLoadingPlaceholder from 'calypso/components/credit-card-form-fields/loading-placeholder';
import FormButton from 'calypso/components/forms/form-button';
import Layout from 'calypso/components/layout';
import Column from 'calypso/components/layout/column';
import LoadingPlaceholder from 'calypso/me/purchases/components/loading-placeholder';
import './style.scss';
export default function PaymentMethodLoader( { title } ) {
return (
<LoadingPlaceholder title={ title } isFullWidth>
<Layout>
<Column type="main">
<Card className="payment-method-loader__credit-card-content credit-card-form__content">
<CreditCardFormFieldsLoadingPlaceholder />
<FormButton isPrimary={ false } disabled />
</Card>
</Column>
<Column type="sidebar">
<Card className="payment-method-loader__top-card">
<div className="payment-method-loader__content loading-placeholder__content cancel-purchase-loading-placeholder__subheader" />
<div className="payment-method-loader__content loading-placeholder__content" />
</Card>
<Card>
<div className="payment-method-loader__content loading-placeholder__content cancel-purchase-loading-placeholder__subheader" />
<div className="payment-method-loader__content loading-placeholder__content" />
</Card>
</Column>
</Layout>
</LoadingPlaceholder>
);
}
PaymentMethodLoader.propTypes = {
title: PropTypes.string.isRequired,
};
|