Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy Staging to Main branch (bugfix) #825

Merged
merged 3 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
"rules": {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"custom-rules/no-text-size-class": "warn",
"prettier/prettier": "error"
},
Expand Down
1 change: 0 additions & 1 deletion src/app/find-properties/[[...opa_id]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
SidePanel,
SidePanelControlBar,
} from '@/components';
import { FilterProvider } from '@/context/FilterContext';
import { NextUIProvider, Spinner } from '@nextui-org/react';
import { X, GlobeHemisphereWest, ListBullets } from '@phosphor-icons/react';
import { MapGeoJSONFeature } from 'maplibre-gl';
Expand Down
8 changes: 1 addition & 7 deletions src/components/ContentCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FC, ReactNode } from 'react';
import { FC } from 'react';
import Image, { StaticImageData } from 'next/image';
import { ThemeButtonLink } from './ThemeButton';
import { ArrowUpRight, CaretRight } from '@phosphor-icons/react';
Expand Down Expand Up @@ -29,16 +29,10 @@ type ContentCardProps = {
};

const ContentCard: FC<ContentCardProps> = ({
// image,
image,
alt,
title,
body,
description,
linkurl,
linktext,
labelUpkeep,
upkeepLevel,
links,
details,
hasArrow,
Expand Down
1 change: 0 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Navbar, NavbarBrand, NavbarContent } from '@nextui-org/react';
import { PiBinoculars, PiKey, PiTree, PiInfo } from 'react-icons/pi';
import { ThemeButton, ThemeButtonLink } from './ThemeButton';
import Image from 'next/image';
import Link from 'next/link';
import IconLink from './IconLink';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Hotjar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';

import React, { useEffect } from 'react';
import { useEffect } from 'react';

const Hotjar = () => {
useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/MapLegendControl/MapLegendControl.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ControlPosition, FillLayerSpecification } from 'maplibre-gl';
import React, { Dispatch, SetStateAction } from 'react';
import { Dispatch, SetStateAction } from 'react';
import { useControl } from 'react-map-gl';
import { MapLegendControlClass } from './MapLegend';

Expand Down
2 changes: 1 addition & 1 deletion src/components/PropertyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import { toTitleCase } from '../utilities/toTitleCase';

interface PropertyCardProps {
feature: any;

Check warning on line 6 in src/components/PropertyCard.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
setSelectedProperty: (feature: any) => void;

Check warning on line 7 in src/components/PropertyCard.tsx

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
}

function getPriorityClass(priorityLevel: string) {
Expand All @@ -21,7 +21,7 @@
}

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

const image = `https://storage.googleapis.com/cleanandgreenphl/${opa_id}.jpg`;
Expand Down
11 changes: 1 addition & 10 deletions src/components/PropertyDetailSection.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
'use client';

import {
FC,
useState,
useMemo,
useRef,
useEffect,
SetStateAction,
Dispatch,
} from 'react';
import { FC, useState, useMemo, useRef, SetStateAction, Dispatch } from 'react';
import { ThemeButton } from './ThemeButton';
import { PiCaretRight, PiCaretLeft } from 'react-icons/pi';
import {
Expand Down Expand Up @@ -85,7 +77,6 @@
key,
value,
isActive,
isFirst,
onNext,
onPrevious,
setPage,
Expand Down Expand Up @@ -287,7 +278,7 @@
<>
<div className="flex w-full my-auto items-center justify-center">
<div aria-live="polite" className="flex flex-col justify-center">
<p className="text-center text-xl font-bold">No Results</p>

Check warning on line 281 in src/components/PropertyDetailSection.tsx

View workflow job for this annotation

GitHub Actions / lint

Use `heading-*` or `body-*` classes instead of specific `text-` size classes
<p className="text-center mt-1">
There are no results that match your filter.
</p>
Expand Down
Loading