fix: back to old view, no add buttom

This commit is contained in:
zain94rif
2026-03-02 15:52:44 +07:00
parent a60dcd104b
commit 10824d4207

View File

@@ -181,40 +181,9 @@ const ListErrorCode = ({
}
};
const handleAddNew = () => {
if (onAddNew) {
onAddNew();
}
};
return (
<Card
title={
<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>
}
title="Daftar Error Code"
style={{ width: '100%', minWidth: '300px' }}
bodyStyle={{ padding: '12px' }}
>