2021-04-12 13:32:25 +00:00
|
|
|
import React, { Component } from "react";
|
|
|
|
import PropTypes from "prop-types";
|
2016-09-19 23:43:35 +00:00
|
|
|
|
2021-04-12 13:32:25 +00:00
|
|
|
import fleetLogoText from "../../../assets/images/fleet-logo-text-white.svg";
|
2019-10-16 23:40:45 +00:00
|
|
|
|
2021-04-12 13:32:25 +00:00
|
|
|
const baseClass = "auth-form-wrapper";
|
2017-01-05 15:53:41 +00:00
|
|
|
|
2016-09-19 23:43:35 +00:00
|
|
|
class AuthenticationFormWrapper extends Component {
|
|
|
|
static propTypes = {
|
|
|
|
children: PropTypes.node,
|
|
|
|
};
|
|
|
|
|
2021-04-12 13:32:25 +00:00
|
|
|
render() {
|
2016-09-19 23:43:35 +00:00
|
|
|
const { children } = this.props;
|
|
|
|
|
|
|
|
return (
|
2017-01-05 15:53:41 +00:00
|
|
|
<div className={baseClass}>
|
2020-11-23 19:22:42 +00:00
|
|
|
<img alt="Fleet" src={fleetLogoText} className={`${baseClass}__logo`} />
|
2016-09-19 23:43:35 +00:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
export default AuthenticationFormWrapper;
|