Skip to content

Commit

Permalink
NERT-314 further lint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar Inostroza committed May 28, 2024
1 parent ae2762a commit e662388
Show file tree
Hide file tree
Showing 10 changed files with 219 additions and 92 deletions.
264 changes: 199 additions & 65 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/src/components/map/MapContainer2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,8 @@ const checkLayerVisibility = (layers: any, features: any) => {
return plansVisible && !feature.properties.is_project
? feature
: projectsVisible && feature.properties.is_project
? feature
: null;
? feature
: null;
});
if (map.getSource('markers')) {
// @ts-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,8 @@ const ProjectParticipantsPage: React.FC = () => {
};

const getProject = useCallback(async () => {
const projectWithDetailsResponse = await restorationTrackerApi.project.getProjectById(
projectId
);
const projectWithDetailsResponse =
await restorationTrackerApi.project.getProjectById(projectId);

if (!projectWithDetailsResponse) {
return;
Expand Down
9 changes: 4 additions & 5 deletions app/src/features/projects/view/ViewProjectPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ const ViewProjectPage: React.FC = () => {
const codes = useCodes();

const getProject = useCallback(async () => {
const projectWithDetailsResponse = await restorationTrackerApi.project.getProjectById(
projectId
);
const projectWithDetailsResponse =
await restorationTrackerApi.project.getProjectById(projectId);

if (!projectWithDetailsResponse) {
// TODO error handling/messaging
Expand Down Expand Up @@ -285,8 +284,8 @@ const ViewProjectPage: React.FC = () => {
{project.location.is_within_overlapping === 'D'
? "Don't know"
: project.location.is_within_overlapping === 'Y'
? 'Yes'
: 'No'}
? 'Yes'
: 'No'}
</Typography>
</Box>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ const TreatmentSpatialUnits: React.FC<IProjectSpatialUnitsProps> = (props) => {
}

try {
const yearsResponse = await restorationTrackerApi.project.getProjectTreatmentsYears(
projectId
);
const yearsResponse =
await restorationTrackerApi.project.getProjectTreatmentsYears(projectId);

if (!yearsResponse.length) {
setYearList([]);
Expand Down
Loading

0 comments on commit e662388

Please sign in to comment.