Skip to content

Commit

Permalink
fix: some clipped imports
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Mar 3, 2024
1 parent b5e823f commit ed65bc0
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'leaflet/dist/leaflet.css'
import * as React from 'react'
import { BrowserRouter } from 'react-router-dom'
import CssBaseline from '@mui/material/CssBaseline'
import { ThemeProvider } from '@mui/material/styles'
import ThemeProvider from '@mui/material/styles/ThemeProvider'
import { ApolloProvider } from '@apollo/client'

import useCustomTheme from '@assets/theme'
Expand Down
3 changes: 1 addition & 2 deletions src/components/ErrorBoundary.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint-disable no-bitwise */
// @ts-check
/* eslint-disable no-console */
/* eslint-disable no-bitwise */
/* eslint-disable react/destructuring-assignment */
import * as React from 'react'
import Grid from '@mui/material/Grid'
Expand Down
1 change: 0 additions & 1 deletion src/features/builder/components/CustomTile.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-check
/* eslint-disable react/jsx-props-no-spreading */
import * as React from 'react'
import Grid from '@mui/material/Unstable_Grid2'

Expand Down
2 changes: 1 addition & 1 deletion src/features/drawer/Extras.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check
/* eslint-disable no-fallthrough */
/* eslint-disable default-case */
// @ts-check
import * as React from 'react'
import Box from '@mui/material/Box'
import ListItem from '@mui/material/ListItem'
Expand Down
1 change: 0 additions & 1 deletion src/features/drawer/SelectorList.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable no-fallthrough */
// @ts-check
import * as React from 'react'
import TuneIcon from '@mui/icons-material/Tune'
Expand Down
3 changes: 1 addition & 2 deletions src/features/pokestop/usePokestopMarker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @ts-check
/* eslint-disable no-nested-ternary */
import { divIcon } from 'leaflet'
import { basicEqualFn, useMemory } from '@hooks/useMemory'
import { useStorage } from '@hooks/useStorage'
Expand Down Expand Up @@ -42,7 +41,7 @@ export function usePokestopMarker({
hasInvasion,
hasQuest && userSettings.pokestops.hasQuestIndicator,
ar_scan_eligible &&
(userSettings.pokestops.showArBadge || power_up_level),
(userSettings.pokestops.showArBadge || !!power_up_level),
power_up_level,
hasEvent
? Math.max(...events.map((event) => event.display_type)).toString()
Expand Down
2 changes: 1 addition & 1 deletion src/features/webhooks/Tracked.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable react/no-unstable-nested-components */
// @ts-check
/* eslint-disable react/no-unstable-nested-components */
import * as React from 'react'
import { useTranslation } from 'react-i18next'
import { Virtuoso } from 'react-virtuoso'
Expand Down
4 changes: 2 additions & 2 deletions src/features/webhooks/human/area/AreaSelection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import * as React from 'react'
import { useQuery } from '@apollo/client'
import { useTranslation } from 'react-i18next'

import { ScanAreaTile } from '@features/scanArea'
import { WEBHOOK_GEOJSON } from '@services/queries/webhook'
import { Loading } from '@components/Loading'
import MemoScanArea from '@features/scanArea/ScanAreaTile'

import { useWebhookStore } from '../../store'

Expand Down Expand Up @@ -36,7 +36,7 @@ export default function WebhookAreaSelection() {
return <Loading>{t('loading', { category: t('areas') })}</Loading>
}
if (webhookMode === 'areas' && data?.webhookGeojson) {
return <MemoScanArea {...(data?.webhookGeojson || FALLBACK)} />
return <ScanAreaTile {...(data?.webhookGeojson || FALLBACK)} />
}
return null
}
File renamed without changes.
20 changes: 10 additions & 10 deletions src/pages/map/components/Nav.jsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
// @ts-check
import * as React from 'react'

import { useMemory } from '@hooks/useMemory'

import Drawer from '@features/drawer'
import FilterMenu from '@components/dialogs/filters/FilterMenu'
import UserOptions from '@components/dialogs/UserOptions'
import Tutorial from '@features/tutorial'
import UserProfile from '@features/profile'
import Drawer from '@features/drawer'
import Search from '@features/search'
import MessageOfTheDay from '@features/builder/Motd'
import DonorPage from '@features/builder/DonorPage'
import Webhook from '@features/webhooks'
import { DonorPage, MessageOfTheDay } from '@features/builder'
import ScanDialog from '@features/scanner/ScanDialog'
import { WebhookNotification } from '@features/webhooks/Notification'
import Feedback from '@components/dialogs/Feedback'
import FilterMenu from '@components/dialogs/filters/FilterMenu'
import UserOptions from '@components/dialogs/UserOptions'
import ResetFilters from '@components/dialogs/ResetFilters'
import ScanDialog from '@features/scanner/ScanDialog'
import Webhook from '@features/webhooks/Webhook'
import ClientError from '@components/dialogs/ClientError'
import { WebhookNotification } from '@features/webhooks/Notification'
import AdvancedFilter from '@components/dialogs/filters/Advanced'
import BadgeSelection from '@components/dialogs/BadgeSelection'
import WebhookAdvanced from '@features/webhooks/WebhookAdv'
import SlotSelection from '@components/dialogs/filters/SlotSelection'
import { HelpDialog } from '@components/dialogs/Help'
import { PkmnFilterHelp } from '@components/dialogs/filters/PkmnFilterHelp'
import { useMemory } from '@hooks/useMemory'

import { FloatingButtonsMemo } from './FloatingBtn'

export const Nav = React.memo(
Expand Down

0 comments on commit ed65bc0

Please sign in to comment.