diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index 0ca9d7c1..c06b7c8a 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -101,7 +101,7 @@ jobs: run: aws s3 sync ./public/ s3://usds-geoplatform-justice40-website/justice40-tool/${{env.DESTINATION_FOLDER}} --acl public-read --delete - name: Update PR with deployed URL uses: mshick/add-pr-comment@v1 - if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event_name == 'push' # Only comment if the PR has been opened or a push has updated it + if: (github.event_name == 'pull_request' && github.event.action == 'opened') || github.event_name == 'push' # Only comment if the PR has been opened or a push has updated it with: message: | **🚢 PR Deployed! 🚢** diff --git a/client/src/components/areaDetail.module.scss b/client/src/components/AreaDetail/areaDetail.module.scss similarity index 99% rename from client/src/components/areaDetail.module.scss rename to client/src/components/AreaDetail/areaDetail.module.scss index 94b2024f..811759c1 100644 --- a/client/src/components/areaDetail.module.scss +++ b/client/src/components/AreaDetail/areaDetail.module.scss @@ -1,4 +1,4 @@ -@import "./utils.scss"; +@import "../utils.scss"; $sidePanelLabelFontColor: #171716; $featureSelectBorderColor: #00bde3; diff --git a/client/src/components/areaDetail.module.scss.d.ts b/client/src/components/AreaDetail/areaDetail.module.scss.d.ts similarity index 97% rename from client/src/components/areaDetail.module.scss.d.ts rename to client/src/components/AreaDetail/areaDetail.module.scss.d.ts index 060bcaac..e18a1518 100644 --- a/client/src/components/areaDetail.module.scss.d.ts +++ b/client/src/components/AreaDetail/areaDetail.module.scss.d.ts @@ -17,7 +17,6 @@ declare namespace MapModuleScssNamespace { censusLabel:string; divider:string; indicatorBox:string; - indicatorInfo:string; indicatorTitle:string; indicatorDescription:string; indicatorValue:string; diff --git a/client/src/components/areaDetail.tsx b/client/src/components/AreaDetail/index.tsx similarity index 96% rename from client/src/components/areaDetail.tsx rename to client/src/components/AreaDetail/index.tsx index eb57fcb7..128edd83 100644 --- a/client/src/components/areaDetail.tsx +++ b/client/src/components/AreaDetail/index.tsx @@ -7,7 +7,7 @@ import {defineMessages} from 'react-intl'; // Styles and constants import * as styles from './areaDetail.module.scss'; -import * as constants from '../data/constants'; +import * as constants from '../../data/constants'; export const readablePercent = (percent: number) => { return `${(percent * 100).toFixed(1)}`; @@ -113,6 +113,8 @@ const AreaDetail = ({properties}:IAreaDetailProps) => { const score = properties[constants.SCORE_PROPERTY_HIGH] as number; const blockGroup = properties[constants.GEOID_PROPERTY]; const population = properties[constants.TOTAL_POPULATION]; + const countyName = properties[constants.COUNTY_NAME]; + const stateName = properties[constants.STATE_NAME]; interface indicatorInfo { label: string, @@ -176,11 +178,11 @@ const AreaDetail = ({properties}:IAreaDetailProps) => {