mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-24 03:57:06 -04:00

* removed cover.scss * uncluttered intro Signed-off-by: Philip Molares <philip.molares@udo.edu>
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import {LoginStatus} from "../../../../../redux/user/types";
|
|
import {Link} from "react-router-dom";
|
|
import {Button} from "react-bootstrap";
|
|
import {Trans, useTranslation} from "react-i18next";
|
|
import React from "react";
|
|
import {useSelector} from "react-redux";
|
|
import {ApplicationState} from "../../../../../redux";
|
|
import "./cover-buttons.scss";
|
|
|
|
export const CoverButtons: React.FC = () => {
|
|
useTranslation();
|
|
const user = useSelector((state: ApplicationState) => state.user);
|
|
|
|
if (user.status === LoginStatus.ok) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<div className="mb-5">
|
|
<Link to="/login">
|
|
<Button
|
|
className="cover-button"
|
|
variant="success"
|
|
size="lg"
|
|
>
|
|
<Trans i18nKey="signIn"/>
|
|
</Button>
|
|
</Link>
|
|
|
|
<span className="m-2">
|
|
<Trans i18nKey="or"/>
|
|
</span>
|
|
|
|
<Link to="/features">
|
|
<Button
|
|
className="cover-button"
|
|
variant="primary"
|
|
size="lg"
|
|
>
|
|
<Trans i18nKey="exploreFeatures"/>
|
|
</Button>
|
|
</Link>
|
|
</div>
|
|
);
|
|
|
|
}
|