Skip to content

Commit

Permalink
Use the useAuth Hook on ingestion page
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Aug 7, 2024
1 parent 7da4cf0 commit 627c5e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pages/maps/ingestion/+Page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ import { ingestPrefix } from "@macrostrat-web/settings";
import hyper from "@macrostrat/hyper";
import react, { useCallback, useEffect, useState } from "react";
import { PageBreadcrumbs } from "~/components";
import { usePageContext } from "vike-react/usePageContext";
import { IngestProcessCard } from "./components";
import styles from "./main.module.sass";
import { AuthStatus } from "@macrostrat/auth-components";
import { useAuth, AuthStatus } from "@macrostrat/auth-components";

import { ContentPage } from "~/layouts";
import Tag from "./components/Tag";

const h = hyper.styled(styles);

export function Page() {
const { user } = usePageContext();
const { user } = useAuth();

const [ingestProcess, setIngestProcess] = useState<IngestProcess[]>([]);
const [ingestFilter, setIngestFilter] = useState<URLSearchParams>(undefined);
Expand Down

0 comments on commit 627c5e6

Please sign in to comment.