Fakultas Ilmu Komputer UI

ListPengguna.jsx 690 Bytes
Newer Older
1
import React from "react";
Jeffrey's avatar
Jeffrey committed
2
import { css } from "@emotion/core";
3
import TableComponent from "../../component/TableComponent";
4

5
6
7
8
9
10
11
12
13
14
const ListPengguna = () => {
  const data = {
    url: `${process.env.REACT_APP_BASE_URL}/users/`,
    pageDefault: 1,
    searchDefault: "",
    title: "Pengguna",
    keyValuePairs: [
      ["id", "id"],
      ["full_name", "Nama Lengkap"],
      ["username", "Username"],
15
16
      ["total_transactions", "Jumlah Transaksi"],
      ["total_program_donations", "Jumlah Donasi"],
17
    ],
Jeffrey's avatar
Jeffrey committed
18
    link: "",
19
  };
Jeffrey's avatar
Jeffrey committed
20
21
22
23
24
25
  return (
    <div
      css={css`
        margin-top: 2rem;
      `}
    >
26
      <TableComponent {...data} />
Jeffrey's avatar
Jeffrey committed
27
28
    </div>
  );
29
30
31
};

export default ListPengguna;