Fakultas Ilmu Komputer UI

Commit d0bde1d1 authored by FadhilP's avatar FadhilP
Browse files

[REFACTOR] Reallocate error

parent fa44dd86
......@@ -25,9 +25,6 @@ const TambahProgram = () => {
flex-direction: column;
`}
>
<div>
{error && <ErrorDiv>Error !, Data tidak dapat disimpan</ErrorDiv>}
</div>
<div
css={css`
font-style: normal;
......@@ -57,7 +54,7 @@ const TambahProgram = () => {
margin-top: 1rem;
`}
></div>
<FormProgram {...{ onSubmit }} />
<FormProgram {...{ onSubmit, error }} />
</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