Fakultas Ilmu Komputer UI

Commit 1f7de3bb authored by FadhilP's avatar FadhilP
Browse files

[REFACTOR] Reallocate error

parent 66e48f28
......@@ -77,7 +77,6 @@ const EditBank = ({ idBank }) => {
</DialogActions>
</DialogContent>
</Dialog>
{error && <ErrorDiv>Error !, Data tidak dapat disimpan</ErrorDiv>}
{errorDelete && <ErrorDiv>Tidak dapat menghapus bank.</ErrorDiv>}
<div
css={css`
......@@ -123,7 +122,7 @@ const EditBank = ({ idBank }) => {
Informasi Bank
</div>
</div>
<FormBank {...{ onSubmit, initialData }} />
<FormBank {...{ onSubmit, initialData, error }} />
<div
css={css`
margin-right: 1.5%;
......
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