Skip to content

Commit

Permalink
Fix: Disabled View DDA button if DDA is empty
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <[email protected]>
  • Loading branch information
georgepadayatti committed Apr 8, 2024
1 parent a330351 commit a3151ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/container/Home/DataSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ const DataSourceCard = ({ dataSource, dataDisclosureAgreements }: DataSourceCard
</Typography>

<Box className="actionBtn">
<Button size="small" sx={{fontSize: "14px"}} onClick={() => handleClick({dataSource, dataDisclosureAgreements})}>
<Button size="small" sx={{fontSize: "14px", cursor: dataDisclosureAgreements.length === 0 ? 'not-allowed' : 'pointer'}} onClick={() => {
if (dataDisclosureAgreements.length > 0) {handleClick({dataSource, dataDisclosureAgreements})}
}}>
{t('home.btn-signData')}
</Button>
{/* <Button size="small" sx={{fontSize: "14px"}}>
Expand Down

0 comments on commit a3151ec

Please sign in to comment.