feat: update button label in DetailPlantSection based on action mode

This commit is contained in:
2025-10-17 00:31:29 +07:00
parent 6348c1e2b4
commit fcf1deaa26

View File

@@ -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={{