Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react'
- import PropTypes from 'prop-types'
- import styled from 'styled-components'
- import {
- Col,
- Row,
- Input,
- Checkbox
- } from 'antd'
- const CustomerDetails = ({ customer }) =>
- !!Object.keys(customer).length && (
- <Container>
- <h2>
- {/* Name */}
- Test Test
- </h2>
- <Row>
- <Col span={8}>
- <Ul>
- <h3><strong>Primary Contact</strong></h3>
- <li>Jane Doe</li>
- <li>212-333-3333</li>
- </Ul>
- </Col>
- <Col span={8}>
- <Ul>
- <h3><strong>Service Address</strong></h3>
- <li>1234 Stone Ave N</li>
- <li>STE FR6</li>
- <li>Seattle, WA 12345</li>
- </Ul>
- </Col>
- <Col span={8}>
- <Ul>
- <h3><strong>Billing Address</strong></h3>
- <li>1234 Stone Ave N</li>
- <li>STE FR6</li>
- <li>Seattle, WA 12345</li>
- </Ul>
- </Col>
- </Row>
- <br />
- <Row>
- <Col span={10}>
- <h4>PRIMARY CONTACT EMAIL</h4>
- </Col>
- </Row>
- <Row>
- <Col span={8}>
- <StyledInput />
- </Col>
- <Col span={12}>
- <StyledCheckbox /> EMAIL OPT OUT
- </Col>
- </Row>
- <br />
- <Row>
- <Col>
- <StyledCheckbox /> TAX EXEMPT
- </Col>
- </Row>
- <br />
- <Row>
- <Col>
- <h4>GO TO BUNDLE BUILDER</h4>
- </Col>
- </Row>
- </Container>
- )
- CustomerDetails.propTypes = {
- customer: PropTypes.object
- }
- CustomerDetails.defaultProps = {
- customer: {}
- }
- const Container = styled.div`
- margin: 15px 5px;
- `
- const StyledCheckbox = styled(Checkbox)`
- `
- const StyledInput = styled(Input)`
- max-width: 75%;
- `
- const Ul = styled.ul`
- list-style-type: none;
- li {
- font-size: 1rem;
- }
- `
- export default CustomerDetails
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement