mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
- Add the server_url_prefix flag for configuring this functionality - Add prefix handling to the server routes - Refactor JS to use appropriate paths from modules - Use JS template to get URL prefix into JS environment - Update webpack config to support prefixing Thanks to securityonion.net for sponsoring the development of this feature. Closes #1661
25 lines
581 B
JavaScript
25 lines
581 B
JavaScript
import React, { Component } from 'react';
|
|
import PropTypes from 'prop-types';
|
|
|
|
import logoVertical from '../../../assets/images/kolide-logo-vertical.svg';
|
|
|
|
const baseClass = 'auth-form-wrapper';
|
|
|
|
class AuthenticationFormWrapper extends Component {
|
|
static propTypes = {
|
|
children: PropTypes.node,
|
|
};
|
|
|
|
render () {
|
|
const { children } = this.props;
|
|
|
|
return (
|
|
<div className={baseClass}>
|
|
<img alt="Kolide Fleet" src={logoVertical} className={`${baseClass}__logo`} />
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default AuthenticationFormWrapper;
|