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