Fakultas Ilmu Komputer UI

Commit be60061c authored by FadhilP's avatar FadhilP
Browse files

[REFACTOR] Add back arrow and remove nav button

parent d13d8509
......@@ -2,8 +2,9 @@ import React from "react";
import { css } from "@emotion/core";
import { ErrorDiv } from "../../component/html/html";
import FormProgram from "./FormProgram";
import LinkYellow from "../../component/LinkYellow";
import useSendData from "../../utils/useSendData";
import { Link } from "@reach/router";
import ArrowBackIcon from "@material-ui/icons/ArrowBack";
const TambahProgram = () => {
const url = `${process.env.REACT_APP_BASE_URL}/programs/`;
......@@ -27,13 +28,25 @@ const TambahProgram = () => {
<div>
{error && <ErrorDiv>Error !, Data tidak dapat disimpan</ErrorDiv>}
</div>
<div
css={css`
font-size: 35px;
font-style: normal;
font-weight: 300;
font-size: 2.5rem;
line-height: 3.4rem;
`}
>
TAMBAH PROGRAM
<Link to="/program" style={{ color: "#000000" }}>
<ArrowBackIcon fontSize="large" />
</Link>
<div
css={css`
display: inline;
margin-left: 2rem;
`}
>
TAMBAH PROGRAM
</div>
</div>
<div
css={css`
......@@ -43,10 +56,7 @@ const TambahProgram = () => {
margin-bottom: 2rem;
margin-top: 1rem;
`}
>
<LinkYellow to="/program/tambah">TAMBAH</LinkYellow>
<LinkYellow to="/program">LIHAT</LinkYellow>
</div>
></div>
<FormProgram {...{ 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