source: frontend/src/Pages/ConnectedAccountsPage.js

Last change on this file was 0f5aa27, checked in by darsov2 <62809499+darsov2@…>, 5 months ago

ouath, mailing impl

  • Property mode set to 100644
File size: 1.4 KB
Line 
1import React from "react";
2import Navigation from "../Components/Layout/Navbar/Navigation";
3import {Container, Row} from "react-bootstrap";
4import ConnectedAccountsTable from "../Components/ConnectedAccounts/ConnectedAccountsTable";
5import LoginForm from "../Components/Login/LoginForm";
6import {useAuth} from "../Components/Context/AuthContext";
7import useGet from "../Components/Hooks/useGet";
8
9const ConnectedAccountsPage = () => {
10 const Auth = useAuth();
11 console.log(Auth.getUser())
12 const { data, isLoading, setData, getData, setChanged } = useGet(`/users/${Auth.getUser().userId}/connected`);
13
14
15 return (
16 <>
17 <Navigation/>
18 <Container>
19 <Row className="mb-5">
20 <h2 style={{color: "#159895", textAlign: "left"}}>Поврзани профили</h2>
21 </Row>
22 </Container>
23 <Container>
24 {!isLoading && <ConnectedAccountsTable data={data}></ConnectedAccountsTable>}
25 </Container>
26 <Container className={'mt-5'}>
27 <Row className="mb-5">
28 <h2 style={{color: "#159895", textAlign: "left"}}>Поврзи нов локален профил</h2>
29 </Row>
30 </Container>
31 <Container className={'w-50'}>
32 <LoginForm refresh={setChanged}></LoginForm>
33 </Container>
34 </>
35 )
36}
37
38export default ConnectedAccountsPage;
Note: See TracBrowser for help on using the repository browser.