Fakultas Ilmu Komputer UI

Commit 97692f2f authored by FadhilP's avatar FadhilP
Browse files

[REFACTOR] Add back arrow and remove nav button

parent 39afd0d5
......@@ -4,9 +4,11 @@ import { ErrorDiv } from "../../component/html/html";
import FormBatch from "./FormBatch";
import LinkYellow from "../../component/LinkYellow";
import useSendData from "../../utils/useSendData";
import { Link } from "@reach/router";
import ArrowBackIcon from "@material-ui/icons/ArrowBack";
const TambahBatch = () => {
const url = `${process.env.REACT_APP_BASE_URL}/batch/`;
const url = `${process.env.REACT_APP_BASE_URL}/batch1/`;
const [send, error] = useSendData({
url,
method: "POST",
......@@ -17,8 +19,8 @@ const TambahBatch = () => {
formData.append("batch_name", data["batch_name"]);
formData.append("start_date", data["start_date"]);
formData.append("end_date", data["end_date"]);
formData.append("shipping_cost", data["shipping_cost"])
formData.append("shipping_cost", data["shipping_cost"]);
send(formData);
};
return (
......@@ -36,28 +38,33 @@ const TambahBatch = () => {
<div
css={css`
font-size: 35px;
font-style: normal;
font-weight: 300;
font-size: 2.5rem;
line-height: 3.4rem;
`}
>
ADMIN - KELOLA BATCH
<Link to="/batch" style={{ color: "#000000" }}>
<ArrowBackIcon fontSize="large" />
</Link>
<div
css={css`
display: inline;
margin-left: 2rem;
`}
>
TAMBAH BATCH
</div>
</div>
<div
css={css`
width: 35%;
display: flex;
flex-direction: row;
margin-bottom: 2rem;
margin-top: 1rem;
font-weight: 700;
`}
>
<LinkYellow to="/batch/tambah">TAMBAH</LinkYellow>
<LinkYellow to="/batch">LIHAT</LinkYellow>
</div>
<div css={css`
font-weight: 700 ;
`}>Informasi Batch</div>
<FormBatch {...{ onSubmit }} />
</div>
Informasi Batch
</div>
<FormBatch {...{ onSubmit }} />
</div>
);
};
......
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