Skip to content

Commit

Permalink
chore: fix typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Dec 16, 2024
1 parent 6ecf4d5 commit 9b68215
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 30 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
"dependencies": {
"@arcgis/core": "^4.31.1",
"@heroicons/react": "^2.1.5",
"@ugrc/layer-selector": "^6.2.9",
"@ugrc/utah-design-system": "^1.15.1",
"@ugrc/layer-selector": "^6.2.11",
"@ugrc/utah-design-system": "^1.17.2",
"@ugrc/utilities": "^2.4.3",
"firebase": "^11.0.1",
"ky": "^1.7.2",
"lodash.startcase": "^4.4.0",
Expand Down
31 changes: 17 additions & 14 deletions pnpm-lock.yaml

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

5 changes: 0 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
UgrcLogo,
masqueradeProvider,
} from '@ugrc/utah-design-system';
import PropTypes from 'prop-types';
import { useCallback, useEffect, useState } from 'react';
import { useOverlayTrigger } from 'react-aria';
import { ErrorBoundary } from 'react-error-boundary';
Expand All @@ -39,10 +38,6 @@ const ErrorFallback = ({ error }: { error: Error }) => {
);
};

ErrorFallback.propTypes = {
error: PropTypes.object,
};

esriConfig.assetsPath = './assets';
const links = [
{
Expand Down
4 changes: 0 additions & 4 deletions src/components/contexts/AnalyticsProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { logEvent as firebaseLogEvent, getAnalytics } from 'firebase/analytics';
import PropTypes from 'prop-types';
import { createContext, type ReactNode, useContext } from 'react';
import { useFirebaseApp } from './FirebaseAppProvider';

Expand All @@ -20,9 +19,6 @@ export function AnalyticsProvider(props: AnalyticsProviderProps) {

return <AnalyticsSdkContext.Provider value={logEvent} {...props} />;
}
AnalyticsProvider.propTypes = {
sdk: PropTypes.object,
};

export function useAnalytics() {
const value = useContext(AnalyticsSdkContext);
Expand Down
5 changes: 0 additions & 5 deletions src/components/contexts/MapProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Graphic from '@arcgis/core/Graphic';
import MapView from '@arcgis/core/views/MapView';
import { useGraphicManager } from '@ugrc/utilities/hooks';
import PropTypes from 'prop-types';
import { createContext, type ReactNode, useState } from 'react';

type GraphicOptions = Graphic | Graphic[] | null;
Expand Down Expand Up @@ -43,7 +42,3 @@ export const MapProvider = ({ children }: { children: ReactNode }) => {
</MapContext.Provider>
);
};

MapProvider.propTypes = {
children: PropTypes.node.isRequired,
};

0 comments on commit 9b68215

Please sign in to comment.