Skip to content

Commit

Permalink
Merge pull request #965 from CodeForPhilly/lebovits/fe-tweaks
Browse files Browse the repository at this point in the history
Front-end fixes
  • Loading branch information
nlebovits authored Oct 19, 2024
2 parents 8069148 + 8545696 commit a38843c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
6 changes: 0 additions & 6 deletions src/components/FilterView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ const filters = [
options: ['Land', 'Building'],
type: 'buttonGroup',
},
{
property: 'owner_type',
display: 'Owner',
options: ['Public', 'Business (LLC)', 'Individual'],
type: 'buttonGroup',
},
];

interface FilterViewProps {
Expand Down
4 changes: 2 additions & 2 deletions src/components/PropertyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function getPriorityClass(priorityLevel: string) {
}

const PropertyCard = ({ feature, setSelectedProperty }: PropertyCardProps) => {
const { address, guncrime_density, priority_level, opa_id } =
const { address, gun_crimes_density_label, priority_level, opa_id } =
feature.properties;

const image = `https://storage.googleapis.com/cleanandgreenphl/${opa_id}.jpg`;
Expand Down Expand Up @@ -62,7 +62,7 @@ const PropertyCard = ({ feature, setSelectedProperty }: PropertyCardProps) => {
{formattedAddress}
</button>
<div className="text-gray-700 body-sm">
{guncrime_density} Gun Crime Rate
{gun_crimes_density_label} Gun Crime Rate
</div>
</div>
<Chip
Expand Down
2 changes: 1 addition & 1 deletion src/components/PropertyDetailSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const tableCols = [
label: 'Address',
},
{
key: 'guncrime_density',
key: 'gun_crimes_density_label',
label: 'Crime Rate',
},
{
Expand Down
10 changes: 5 additions & 5 deletions src/components/SinglePropertyDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const SinglePropertyDetail = ({
const {
address,
council_district,
guncrime_density,
gun_crimes_density_label,
market_value,
neighborhood,
open_violations_past_year,
Expand All @@ -101,7 +101,7 @@ const SinglePropertyDetail = ({
tree_canopy_gap,
zipcode,
opa_id,
phs_partner_agency,
phs_care_program,
} = properties;
const image = `https://storage.googleapis.com/cleanandgreenphl/${opa_id}.jpg`;
const atlasUrl = `https://atlas.phila.gov/${address}`;
Expand Down Expand Up @@ -310,7 +310,7 @@ const SinglePropertyDetail = ({
rows={[
{
label: 'Gun Crime Rate',
content: guncrime_density,
content: gun_crimes_density_label,
},
{
label: 'Tree Canopy Gap',
Expand All @@ -321,8 +321,8 @@ const SinglePropertyDetail = ({
content: open_violations_past_year,
},
{
label: 'PHS LandCare',
content: phs_partner_agency,
label: 'In PHS LandCare?',
content: phs_care_program,
},
{
label: 'Suggested Priority',
Expand Down

0 comments on commit a38843c

Please sign in to comment.