react-code-dataset / wp-calypso /client /me /purchases /components /payment-method-loader /index.jsx
react-code-dataset / wp-calypso /client /me /purchases /components /payment-method-loader /index.jsx
Download wp-calypso/client/me/purchases/components/payment-method-loader/index.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.55 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/purchases/components/payment-method-loader/index.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/purchases/components/payment-method-loader/index.jsx
-
curl -L -o index.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/purchases/components/payment-method-loader/index.jsx
1.55 kB
| 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, | |
| }; | |