import React from 'react'; import { Container, Alert, Button, Form } from 'react-bootstrap'; import Nav from './nav'; class Login extends React.Component { state = { showDialog: false, username: '', password: '' } componentDidMount() { console.log(this.props) if (this.props.location.state) this.setState({ showDialog: this.props.location.state.redirectFromUnauthorized }); } render() { console.log(this.props.match) return (