Last change
on this file since e9b4ba9 was e9b4ba9, checked in by darsov2 <62809499+darsov2@…>, 9 months ago |
prototype
|
-
Property mode
set to
100644
|
File size:
1.7 KB
|
Line | |
---|
1 | import React from "react";
|
---|
2 | import { Container, Col, Row, Image } from "react-bootstrap";
|
---|
3 | import Navigation from "../Components/Layout/Navbar/Navigation";
|
---|
4 | import ResourcesTab from "../Components/Resources/ResourcesTab";
|
---|
5 | import { useState } from "react";
|
---|
6 | import useGet from "../Components/Hooks/useGet";
|
---|
7 |
|
---|
8 | const 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 |
|
---|
55 | export default ResourcesPage;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.