diff --git a/frontend/components/Navigation.tsx b/frontend/components/Navigation.tsx index 2d9d1fe..22930c9 100644 --- a/frontend/components/Navigation.tsx +++ b/frontend/components/Navigation.tsx @@ -6,8 +6,7 @@ import NavItem from "./NavItem"; import Logo from "./logo"; import { useRecoilState } from "recoil"; import { userState } from "../lib/state"; -import fetchAPI from "../lib/fetch"; -import { APIError, ErrorCode, MeUser } from "../lib/types"; +import { fetchAPI, APIError, ErrorCode, MeUser } from "../lib/api-fetch"; export default function Navigation() { const [user, setUser] = useRecoilState(userState); diff --git a/frontend/components/PersonPage.tsx b/frontend/components/PersonPage.tsx index ed13e74..5484885 100644 --- a/frontend/components/PersonPage.tsx +++ b/frontend/components/PersonPage.tsx @@ -1,14 +1,4 @@ import Head from "next/head"; -import { - Field, - Member, - Name, - PartialPerson, - Person, - Pronoun, - User, - WordStatus, -} from "../lib/types"; import ReactMarkdown from "react-markdown"; import { userState } from "../lib/state"; import { useRecoilValue } from "recoil"; @@ -23,12 +13,13 @@ import { import BlueLink from "./BlueLink"; import React from "react"; import Card from "./Card"; +import { Field, Label, LabelStatus, Person, User } from "../lib/api"; export default function PersonPage({ person }: { person: Person }) { return ( <>
-