Fakultas Ilmu Komputer UI

Commit 99ea7301 authored by FadhilP's avatar FadhilP
Browse files

[REFACTOR] Reallocate error

parent d0bde1d1
......@@ -42,7 +42,6 @@ const EditSubkategori = ({ idSubKategori }) => {
flex-direction: column;
`}
>
{error && <ErrorDiv>Error !, Data tidak dapat disimpan</ErrorDiv>}
<div
css={css`
display: flex;
......@@ -87,7 +86,7 @@ const EditSubkategori = ({ idSubKategori }) => {
Informasi Subkategori
</div>
</div>
<FormSubkategori {...{ onSubmit, initialData }} />
<FormSubkategori {...{ onSubmit, initialData, 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