login page update
parent
2cc5a31675
commit
6378246286
|
@ -0,0 +1,3 @@
|
||||||
|
In gridul de retea, pe fiecare linie va fi un buton care va deschide un log.
|
||||||
|
Log-ul va fi popup iar continutul lui poate fi ultima componenta de aici https://material-ui.com/components/app-bar/
|
||||||
|
**************************************************************************************************************************
|
|
@ -28,7 +28,7 @@ const App = () => {
|
||||||
</ApplicationDispatchContext.Provider>
|
</ApplicationDispatchContext.Provider>
|
||||||
</ApplicationStateContext.Provider>
|
</ApplicationStateContext.Provider>
|
||||||
<ToastContainer
|
<ToastContainer
|
||||||
position="top-right"
|
position="bottom-right"
|
||||||
transition={Slide}
|
transition={Slide}
|
||||||
autoClose={3000}
|
autoClose={3000}
|
||||||
hideProgressBar={false}
|
hideProgressBar={false}
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import PropTypes from "prop-types";
|
import PropTypes from "prop-types";
|
||||||
import { makeStyles } from "@material-ui/core/styles";
|
import { makeStyles } from "@material-ui/core/styles";
|
||||||
import { TextField, InputAdornment, Button } from "@material-ui/core";
|
import {
|
||||||
|
TextField,
|
||||||
|
InputAdornment,
|
||||||
|
Button,
|
||||||
|
Card,
|
||||||
|
CardActions,
|
||||||
|
CardContent
|
||||||
|
} from "@material-ui/core";
|
||||||
import { AccountCircleOutlined } from "@material-ui/icons";
|
import { AccountCircleOutlined } from "@material-ui/icons";
|
||||||
import PasswordField from "../../../components/common/inputs/PasswordField";
|
import PasswordField from "../../../components/common/inputs/PasswordField";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
|
@ -18,7 +25,8 @@ const LoginComponent = ({ credentials, onChange, onLogin }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<Card variant="outlined">
|
||||||
|
<CardContent>
|
||||||
<TextField
|
<TextField
|
||||||
className={classes.field}
|
className={classes.field}
|
||||||
id="username"
|
id="username"
|
||||||
|
@ -41,11 +49,13 @@ const LoginComponent = ({ credentials, onChange, onLogin }) => {
|
||||||
onChange={onChange("password")}
|
onChange={onChange("password")}
|
||||||
value={credentials.password}
|
value={credentials.password}
|
||||||
/>
|
/>
|
||||||
<br />
|
</CardContent>
|
||||||
|
<CardActions>
|
||||||
<Button variant="contained" color="primary" onClick={onLogin}>
|
<Button variant="contained" color="primary" onClick={onLogin}>
|
||||||
{t("Login.Label")}
|
{t("Login.Label")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</CardActions>
|
||||||
|
</Card>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue