Last change
on this file was 0f5aa27, checked in by darsov2 <62809499+darsov2@…>, 10 months ago |
ouath, mailing impl
|
-
Property mode
set to
100644
|
File size:
1.8 KB
|
Line | |
---|
1 | import useGet from "../Hooks/useGet";
|
---|
2 | import useApprove from "../Hooks/useApprove";
|
---|
3 | import {Container} from "react-bootstrap";
|
---|
4 | import {FaCheckCircle} from "react-icons/fa";
|
---|
5 | import React from "react";
|
---|
6 | import {useAuth} from "../Context/AuthContext";
|
---|
7 | import profilePage from "../../Pages/ProfilePage";
|
---|
8 |
|
---|
9 | const ConnectedAccountsTable = (props) => {
|
---|
10 |
|
---|
11 | const data = props.data;
|
---|
12 | const isLoading = props.isLoading;
|
---|
13 |
|
---|
14 | const { getData: approveBusiness} = useApprove();
|
---|
15 |
|
---|
16 | return (
|
---|
17 | <>
|
---|
18 | <Container fluid >
|
---|
19 | <table className="table table-hover">
|
---|
20 | <thead>
|
---|
21 | <tr>
|
---|
22 | <th scope="col">Ред. бр.</th>
|
---|
23 | <th scope="col">User ID</th>
|
---|
24 | <th scope="col">Име</th>
|
---|
25 | <th scope="col">Презиме</th>
|
---|
26 | <th scope="col">Username</th>
|
---|
27 | <th>Дисконектирај</th>
|
---|
28 | </tr>
|
---|
29 | </thead>
|
---|
30 | <tbody>
|
---|
31 | {data.map((f, i) => { return <tr key={f.userID}>
|
---|
32 | <th style={{verticalAlign: "middle"}} scope="row">{i + 1}</th>
|
---|
33 | <td style={{verticalAlign: "middle"}}>{f.userID}</td>
|
---|
34 | <td style={{verticalAlign: "middle"}}>{f.name}</td>
|
---|
35 | <td style={{verticalAlign: "middle"}}>{f.surname}</td>
|
---|
36 | <td style={{verticalAlign: "middle"}}>{f.username}</td>
|
---|
37 | <td style={{verticalAlign: "middle"}}><FaCheckCircle size={'2.2em'} color={'#159895'} onClick={() => {
|
---|
38 | }}/></td>
|
---|
39 | </tr>})}
|
---|
40 | </tbody>
|
---|
41 | </table>
|
---|
42 | </Container>
|
---|
43 | </>
|
---|
44 | )
|
---|
45 | }
|
---|
46 |
|
---|
47 | export default ConnectedAccountsTable; |
---|
Note:
See
TracBrowser
for help on using the repository browser.