import * as React from 'react'; import { autoSync } from '../../autoSync'; import { GladiatorPageState } from '../state'; import { GladiatorProfile } from './GladiatorProfile'; import { TextInput } from './TextInput'; var debounce = require('lodash.debounce'); class GladiatorPage extends React.Component { public setName = debounce((name: string) => { this.props.setName(name); }, 300); public componentWillMount() { this.props.reset(); } public render() { return (
{/* back button */} this.props.goBack()} className="float-right">Back
{/* profile preview */}
{/* edit controls */}
{/* name */}
this.setName(name)} className="form-control" placeholder="Enter name" />
{/* banner */}

{/* control buttons */}


{/* saved message */}
Gladiator Saved
); } } const connected = autoSync(GladiatorPageState)(GladiatorPage); export { connected as GladiatorPage };