fix: back to old view, no add buttom
This commit is contained in:
@@ -181,40 +181,9 @@ const ListErrorCode = ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleAddNew = () => {
|
|
||||||
if (onAddNew) {
|
|
||||||
onAddNew();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
title={
|
title="Daftar Error Code"
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
display: 'flex',
|
|
||||||
justifyContent: 'space-between',
|
|
||||||
alignItems: 'center',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<span>Daftar Error Code</span>
|
|
||||||
<Button
|
|
||||||
icon={<PlusOutlined />}
|
|
||||||
onClick={handleAddNew}
|
|
||||||
size="medium"
|
|
||||||
type="default"
|
|
||||||
style={{
|
|
||||||
color: '#23A55A',
|
|
||||||
borderColor: '#23A55A',
|
|
||||||
fontWeight: '500',
|
|
||||||
borderRadius: '6px',
|
|
||||||
padding: '0 16px',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Add Data
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
style={{ width: '100%', minWidth: '300px' }}
|
style={{ width: '100%', minWidth: '300px' }}
|
||||||
bodyStyle={{ padding: '12px' }}
|
bodyStyle={{ padding: '12px' }}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user