Fakultas Ilmu Komputer UI

Commit c7dc209a authored by Jeffrey's avatar Jeffrey
Browse files

[REFACTOR] Add ListDonasi columns

parent 5646a820
Pipeline #49149 passed with stages
in 5 minutes and 53 seconds
......@@ -133,7 +133,7 @@ const EditBank = ({ idBank }) => {
data-testid="button-delete-bank-modal"
onClick={() => setOpenModal(true)}
>
Hapus
HAPUS
</ButtonDeleteStyled>
</div>
</div>
......
......@@ -61,7 +61,14 @@ const FormBank = ({ onSubmit, initialData = null }) => {
)}
</RowInput>
<RowInput>
<InputSubmitForm type="submit" data-testid="submit-bank" />
<InputSubmitForm
type="submit"
data-testid="submit-bank"
value="SUBMIT"
css={css`
height: 100%;
`}
/>
</RowInput>
</form>
);
......
import React from "react";
import TableComponent from "../../component/TableComponent";
import { css } from "@emotion/core";
import { donationToColoredStatus } from "../../component/TableUtils";
import {
donationToColoredStatus,
stringToDate,
} from "../../component/TableUtils";
import FormDownload from "../../component/FormDownload";
const ListDonasi = () => {
......@@ -15,6 +18,8 @@ const ListDonasi = () => {
["user_username", "Username"],
["program_name", "Nama Program"],
["", "Status", donationToColoredStatus],
["created_at", "Tanggal Dibuat", stringToDate],
["updated_at", "Tanggal Update", stringToDate],
],
link: "/donasi/",
filter: [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment