- - { t("management") }
+ { user?.isManager && - { t("management") }
}
{ t('copyright', { date: moment() }) }
diff --git a/src/pages/user/login.tsx b/src/pages/user/login.tsx
index ffdd9c9..79c994f 100644
--- a/src/pages/user/login.tsx
+++ b/src/pages/user/login.tsx
@@ -1,6 +1,6 @@
import React, { Dispatch, useEffect } from "react";
import { Page } from "@/pages/base";
-import { Button, CircularProgress, Container, Typography } from "@material-ui/core";
+import { Button, CircularProgress, Container, SvgIcon, Typography } from "@material-ui/core";
import { Action, StudentActions, useDispatch } from "@/state/actions";
import { Route, Switch, useHistory, useLocation, useRouteMatch } from "react-router-dom";
import { route } from "@/routing";
@@ -12,13 +12,22 @@ import { UserActions } from "@/state/actions/user";
import { getAuthorizeUrl } from "@/api/user";
import { useTranslation } from "react-i18next";
import { Loading } from "@/components/loading";
+import GUTLogo from "!@svgr/webpack!@/../public/img/pg-logo.svg";
-const authorizeUser = (code?: string) => async (dispatch: Dispatch