1
0
mirror of https://github.com/TryGhost/Ghost.git synced 2024-12-22 10:21:36 +03:00
Ghost/ghost/members-auth-pages/components/FormHeader.js
Rish 19f243aed1 Refactored members auth flow with dynamic settings
no issue

- Updated members auth flow UI
- Updated members settings and routing to be dynamic
2019-05-07 17:15:50 +02:00

16 lines
409 B
JavaScript

import { IconError } from './icons';
export default ({title, error, errorText, children}) => (
<div>
<div className="gm-auth-header">
{ title ? (<h1>{title}</h1>) : "" }
{ children }
</div>
{(error ?
<div class="gm-form-errortext"><i>{ IconError }</i>
<span> {errorText} </span>
</div> : "")
}
</div>
);