Fakultas Ilmu Komputer UI

Commit 5a041a31 authored by FadhilP's avatar FadhilP
Browse files

[REFACTOR] Add back arrow and remove nav button

parent 97692f2f
......@@ -2,8 +2,9 @@ import React from "react";
import { css } from "@emotion/core";
import { ErrorDiv } from "../../component/html/html";
import FormProduk from "./FormProduk";
import LinkYellow from "../../component/LinkYellow";
import useSendData from "../../utils/useSendData";
import { Link } from "@reach/router";
import ArrowBackIcon from "@material-ui/icons/ArrowBack";
const TambahProduk = () => {
const url = `${process.env.REACT_APP_BASE_URL}/products/`;
......@@ -30,22 +31,23 @@ const TambahProduk = () => {
<div
css={css`
font-size: 35px;
font-style: normal;
font-weight: 300;
font-size: 2.5rem;
line-height: 3.4rem;
`}
>
TAMBAH PRODUK
</div>
<div
css={css`
width: 35%;
display: flex;
flex-direction: row;
margin-bottom: 2rem;
margin-top: 1rem;
`}
>
<LinkYellow to="/produk/tambah">TAMBAH</LinkYellow>
<LinkYellow to="/produk">LIHAT</LinkYellow>
<Link to="/batch" style={{ color: "#000000" }}>
<ArrowBackIcon fontSize="large" />
</Link>
<div
css={css`
display: inline;
margin-left: 2rem;
`}
>
TAMBAH PRODUK
</div>
</div>
<FormProduk {...{ 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