-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3671 from bcgov/NDT-592-Show-Community-names-in-A…
…ll-Dashboard-rows NDT-592-Show-Community-names-in-All-Dashboard-rows
- Loading branch information
Showing
7 changed files
with
199 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
app/components/AnalystDashboard/AllDashboardDetailPanel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import styled from 'styled-components'; | ||
|
||
interface Props { | ||
row: any; | ||
} | ||
|
||
const StyledMapLink = styled.a` | ||
color: ${(props) => props.theme.color.links}; | ||
text-decoration-line: underline; | ||
:hover { | ||
cursor: pointer; | ||
} | ||
`; | ||
|
||
const StyledSpan = styled.span` | ||
color: ${(props) => props.theme.color.darkGrey}; | ||
display: block; | ||
`; | ||
|
||
const AllDashboardDetailPanel: React.FC<Props> = ({ row }) => { | ||
const communities = (row.original.communities as any[]) || []; | ||
return ( | ||
<> | ||
<StyledSpan>Communities</StyledSpan> | ||
{communities.length > 0 ? ( | ||
communities.map((item, index) => ( | ||
<> | ||
<StyledMapLink | ||
href={item.mapLink} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
{item.geoName} | ||
</StyledMapLink> | ||
{index < communities.length - 1 && ', '} | ||
</> | ||
)) | ||
) : ( | ||
<StyledSpan>N/A</StyledSpan> | ||
)} | ||
</> | ||
); | ||
}; | ||
|
||
export default AllDashboardDetailPanel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -734,3 +734,4 @@ tables/application_form_template_9_data_001_add_missing_roles 2024-10-21T17:22:3 | |
tables/cbc_project_communities_001_enable_tracking 2024-11-01T18:07:48Z ,,, <ryohani89@NH504670> # enable history tracking for cbc_project_communities table | ||
computed_columns/cbc_history [computed_columns/[email protected]] 2024-11-13T22:48:20Z ,,, <ryohani89@NH504670> # combine communities data changes to cbc history | ||
@1.209.0 2024-11-18T18:07:01Z CCBC Service Account <[email protected]> # release v1.209.0 | ||
@1.210.0 2024-11-18T22:56:15Z CCBC Service Account <[email protected]> # release v1.210.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "CONN-CCBC-portal", | ||
"version": "1.209.0", | ||
"version": "1.210.0", | ||
"main": "index.js", | ||
"repository": "https://github.com/bcgov/CONN-CCBC-portal.git", | ||
"author": "Romer, Meherzad CITZ:EX <[email protected]>", | ||
|