source: frontend/src/Components/ConnectedAccounts/ConnectedAccountsTable.js

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 
1import useGet from "../Hooks/useGet";
2import useApprove from "../Hooks/useApprove";
3import {Container} from "react-bootstrap";
4import {FaCheckCircle} from "react-icons/fa";
5import React from "react";
6import {useAuth} from "../Context/AuthContext";
7import profilePage from "../../Pages/ProfilePage";
8
9const 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
47export default ConnectedAccountsTable;
Note: See TracBrowser for help on using the repository browser.