Skip to content

Commit

Permalink
Feat: #20 Privacy dashboard url should be a clickable link
Browse files Browse the repository at this point in the history
  • Loading branch information
MARZOOQUE authored and georgepadayatti committed Oct 2, 2024
1 parent 03e6884 commit 62896e8
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions src/Components/modals/detailsContainer/dataSourcesDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,32 @@ export const DataSourcesDetails = ({ t, dataAgreement }) => {
<div style={cardStyle} key={i}>
<p style={{ fontSize: "14px" }}>{dataSource.name}</p>

<div style={{ display: "flex", flexWrap: "wrap" }}>
<p style={{ margin: 0, color: "grey" }}>{dataSource.sector},</p>
<p style={{ margin: 0, color: "grey", marginLeft: 5 }}>
{dataSource.location},
<div
style={{
display: "flex",
flexWrap: "wrap",
alignItems: "center",
}}
>
<p style={{ margin: 0, color: "grey" }}>
{dataSource.sector},&nbsp;&nbsp;
</p>
<p style={{ margin: 0, color: "grey", marginLeft: 5 }}>
{dataSource.privacyDashboardUrl}
<p style={{ margin: 0, color: "grey" }}>
{dataSource.location}
{dataSource.privacyDashboardUrl && ","}&nbsp;&nbsp;
</p>
<a
href={dataSource.privacyDashboardUrl}
target="_blank"
rel="noopener noreferrer"
style={{
margin: 0,
color: "1890FF",
textDecoration: "none",
}}
>
{dataSource.privacyDashboardUrl}
</a>
</div>
</div>
))}
Expand All @@ -78,4 +96,4 @@ export const DataSourcesDetailsWithNamespace = withNamespaces()(
DataSourcesDetails
);

export default DataSourcesDetails;
export default DataSourcesDetails;

0 comments on commit 62896e8

Please sign in to comment.