feat: update button label in DetailPlantSection based on action mode
This commit is contained in:
@@ -145,7 +145,9 @@ const DetailPlantSection = (props) => {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Button onClick={handleCancel}>Batal</Button>
|
<Button onClick={handleCancel}>
|
||||||
|
{props.actionMode === 'preview' ? 'Tutup' : 'Batal'}
|
||||||
|
</Button>
|
||||||
</ConfigProvider>
|
</ConfigProvider>
|
||||||
<ConfigProvider
|
<ConfigProvider
|
||||||
theme={{
|
theme={{
|
||||||
|
|||||||
Reference in New Issue
Block a user