Fakultas Ilmu Komputer UI

Commit 59d1d272 authored by Wan Muhammad Rayhan Arwindra's avatar Wan Muhammad Rayhan Arwindra 🤸🏽
Browse files

Revert "Merge branch 'PBI-6-Ray' into 'master'"

This reverts commit 0a5a7921, reversing
changes made to 980c3fbe.
parent e3680725
image: node:12.18.4
image: node:latest
stages:
- lint
- test
......
......@@ -60,7 +60,6 @@ const TableComponent = ({
reset: resetFilter,
} = useForm();
const [filterTab, setFilterTab] = useState(false);
console.log(results);
return (
<div
css={css`
......
......@@ -26,8 +26,6 @@ const FormDonasi = ({ idDonasi, defaultStatus }) => {
});
const onSubmit = (data) => {
console.log(data);
console.log(...data);
send(JSON.stringify({ ...data }));
};
return (
......
......@@ -38,6 +38,11 @@ const ListPengguna = () => {
const handleClose = () => {
setDialogOpen(false);
};
const handleSubmit = e => {
e.preventDefault();
setSortBy(choice);
handleClose();
}
return (
<div
css={css`
......@@ -89,7 +94,7 @@ const ListPengguna = () => {
>
<DialogTitle id="max-width-dialog-title">Urutkan Berdasarkan</DialogTitle>
<DialogContent>
<form onSubmit={() => setSortBy(choice)}>
<form onSubmit={handleSubmit}>
<RowInput>
<input
data-testid="transaksi-radio"
......@@ -98,7 +103,7 @@ const ListPengguna = () => {
value="transaksi"
id="transaksi"
checked={choice === "transaksi"}
onClick={() => setChoice("transaksi")}
onChange={() => setChoice("transaksi")}
/>
<label htmlFor="preorder" css={css`
margin-left:20px
......@@ -111,7 +116,7 @@ const ListPengguna = () => {
value="donasi-uang"
id="donasi-uang"
checked={choice === "donasi-uang"}
onClick={() => setChoice("donasi-uang")}
onChange={() => setChoice("donasi-uang")}
/>
<label htmlFor="preorder" css={css`
margin-left:20px
......@@ -124,7 +129,7 @@ const ListPengguna = () => {
value="donasi-barang"
id="donasi-barang"
checked={choice === "donasi-barang"}
onClick={() => setChoice("donasi-barang")}
onChange={() => setChoice("donasi-barang")}
/>
<label htmlFor="preorder" css={css`
margin-left:20px
......
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