import React from 'react'; import { Button } from 'react-bootstrap'; import Card from '../components/card.jsx'; import { app } from '../core/app'; import { format } from '../commons/utils'; export default class Success extends React.Component { constructor(props) { super(props); this.contClick = this.contClick.bind(this); } /** * Called when user clicks on the continue button */ contClick() { app.setState({ login: 'admin' }); app.goto('/pub/login'); } /** * Render the component */ render() { const msg = this.props.wsname; return (

{__('init.ws.name')}



{format(__('init.ws.success'), msg)}

); } } Success.propTypes = { wsname: React.PropTypes.string };