source: frontend/src/Pages/ResourcesPage.js@ 5528b99

Last change on this file since 5528b99 was 5528b99, checked in by darsov2 <62809499+darsov2@…>, 6 months ago

revert

  • Property mode set to 100644
File size: 1.7 KB
Line 
1import React from "react";
2import { Container, Col, Row, Image } from "react-bootstrap";
3import Navigation from "../Components/Layout/Navbar/Navigation";
4import ResourcesTab from "../Components/Resources/ResourcesTab";
5import { useState } from "react";
6import useGet from "../Components/Hooks/useGet";
7
8const ResourcesPage = (props) => {
9
10 console.log(props.tab)
11 const { data, setData, isLoading, getData } = useGet("/principal");
12
13
14 return (
15 <>
16 <Navigation />
17{!isLoading && <Container>
18 <Row className="mb-5">
19 <h2 style={{ color: "#159895", textAlign: "left" }}>Мои ресурси</h2>
20 </Row>
21 <Row className="mb-5">
22 <Col>
23 <Row className="d-flex mb-3">
24 <Col
25 className="d-flex justify-content-center"
26 style={{ maxWidth: "30%" }}
27 >
28 <Image
29 src="https://t3.ftcdn.net/jpg/05/16/27/58/360_F_516275801_f3Fsp17x6HQK0xQgDQEELoTuERO4SsWV.jpg"
30 style={{
31 height: "5em",
32 borderRadius: "50%",
33 maxWidth: "100%",
34 }}
35 className="m-auto"
36 ></Image>
37 </Col>
38 <Col className="d-flex justify-content-center">
39 <Container className="pt-2" style={{ textAlign: "left" }}>
40 <h4>{data.name + " " + data.surname}</h4>
41 <h5>{data.email}</h5>
42 </Container>
43 </Col>
44 </Row>
45 </Col>
46 </Row>
47 <Row>
48 <ResourcesTab tab={props.tab}></ResourcesTab>
49 </Row>
50 </Container>}
51 </>
52 );
53};
54
55export default ResourcesPage;
Note: See TracBrowser for help on using the repository browser.