import React, { Component } from "react"; import classnames from 'classnames'; import styles from '../../assets/scss/components/AlreadyAuthenticated/AlreadyAuthenticated.module.scss'; import Button from "@material/react-button"; import CircleLoader, { Status } from "../CircleLoader/CircleLoader"; export interface OwnProps { username: string; redirectionUrl: string | null; } export interface DispatchProps { onLogoutClicked: () => void; } export type Props = OwnProps & DispatchProps; class AlreadyAuthenticated extends Component { render() { return (
{this.props.username} you are authenticated
{(this.props.redirectionUrl) ? {this.props.redirectionUrl} : null}
) } } export default AlreadyAuthenticated;