|
|
@ -1,48 +1,46 @@ |
|
|
|
import React, { Component } from 'react' |
|
|
|
import React from 'react' |
|
|
|
import PropTypes from 'prop-types' |
|
|
|
import Isvg from 'react-inlinesvg' |
|
|
|
import zapLogo from 'icons/zap_logo.svg' |
|
|
|
import styles from './FormContainer.scss' |
|
|
|
|
|
|
|
const FormContainer = ({ title, description, back, next, children }) => { |
|
|
|
return ( |
|
|
|
<div className={styles.container}> |
|
|
|
<div className={styles.titleBar} /> |
|
|
|
const FormContainer = ({ title, description, back, next, children }) => ( |
|
|
|
<div className={styles.container}> |
|
|
|
<div className={styles.titleBar} /> |
|
|
|
|
|
|
|
<header className={styles.header}> |
|
|
|
<header className={styles.header}> |
|
|
|
<section> |
|
|
|
<Isvg src={zapLogo} /> |
|
|
|
</section> |
|
|
|
<section /> |
|
|
|
</header> |
|
|
|
|
|
|
|
<div className={styles.info}> |
|
|
|
<h1>{title}</h1> |
|
|
|
<p>{description}</p> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div className={styles.content}> |
|
|
|
{children} |
|
|
|
</div> |
|
|
|
|
|
|
|
<footer className={styles.footer}> |
|
|
|
<div className={styles.buttonsContainer}> |
|
|
|
<section> |
|
|
|
<Isvg src={zapLogo} /> |
|
|
|
{ |
|
|
|
back && <div onClick={back}>Back</div> |
|
|
|
} |
|
|
|
</section> |
|
|
|
<section> |
|
|
|
{ |
|
|
|
next && <div onClick={next}>Next</div> |
|
|
|
} |
|
|
|
</section> |
|
|
|
</header> |
|
|
|
|
|
|
|
<div className={styles.info}> |
|
|
|
<h1>{title}</h1> |
|
|
|
<p>{description}</p> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div className={styles.content}> |
|
|
|
{children} |
|
|
|
</div> |
|
|
|
</footer> |
|
|
|
</div> |
|
|
|
) |
|
|
|
|
|
|
|
<footer className={styles.footer}> |
|
|
|
<div className={styles.buttonsContainer}> |
|
|
|
<section> |
|
|
|
{ |
|
|
|
back && <div onClick={back}>Back</div> |
|
|
|
} |
|
|
|
</section> |
|
|
|
<section> |
|
|
|
{ |
|
|
|
next && <div onClick={next}>Next</div> |
|
|
|
} |
|
|
|
</section> |
|
|
|
</div> |
|
|
|
</footer> |
|
|
|
</div> |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
FormContainer.propTypes = { |
|
|
|
title: PropTypes.string.isRequired, |
|
|
|