Lint
This commit is contained in:
parent
4a0f00f2a4
commit
18ace123dc
13 changed files with 59 additions and 33 deletions
|
|
@ -12,13 +12,7 @@ import {
|
|||
} from './lib/seoRoutes';
|
||||
import Header, { type Page } from './components/ui/Header';
|
||||
import type { FeatureMeta, FeatureGroup, POICategoriesResponse, POICategoryGroup } from './types';
|
||||
import {
|
||||
fetchWithRetry,
|
||||
apiUrl,
|
||||
logNonAbortError,
|
||||
readDemoChoice,
|
||||
setDemoCenter,
|
||||
} from './lib/api';
|
||||
import { fetchWithRetry, apiUrl, logNonAbortError, readDemoChoice, setDemoCenter } from './lib/api';
|
||||
import { trackEvent } from './lib/analytics';
|
||||
import { parseUrlState } from './lib/url-state';
|
||||
import pb from './lib/pocketbase';
|
||||
|
|
@ -226,8 +220,7 @@ export default function App() {
|
|||
const licensedAtMount = useMemo(
|
||||
() =>
|
||||
pb.authStore.isValid &&
|
||||
(pb.authStore.record?.subscription === 'licensed' ||
|
||||
pb.authStore.record?.is_admin === true),
|
||||
(pb.authStore.record?.subscription === 'licensed' || pb.authStore.record?.is_admin === true),
|
||||
[]
|
||||
);
|
||||
const initialDemoChoice = useMemo(() => {
|
||||
|
|
@ -255,10 +248,7 @@ export default function App() {
|
|||
);
|
||||
const activePageRef = useRef<Page>('home');
|
||||
const initialViewState = useMemo(
|
||||
() =>
|
||||
mapUrlState.hasExplicitView
|
||||
? mapUrlState.viewState
|
||||
: (demoView ?? INITIAL_VIEW_STATE),
|
||||
() => (mapUrlState.hasExplicitView ? mapUrlState.viewState : (demoView ?? INITIAL_VIEW_STATE)),
|
||||
[mapUrlState.hasExplicitView, mapUrlState.viewState, demoView]
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue