feat: start making EditMe functional

This commit is contained in:
Sam 2022-07-05 22:21:28 +02:00
parent 6cc4d4c41d
commit e31f96110b
4 changed files with 76 additions and 31 deletions

View file

@ -1,4 +1,4 @@
import React, { ReactNode, PropsWithChildren } from "react";
import React, { ReactNode } from "react";
export type Props = {
children?: ReactNode | undefined;

View file

@ -4,7 +4,7 @@ import type { APIError } from "./types";
export default async function fetchAPI<T>(
path: string,
method = "GET",
body = null
body: any = null
) {
let headers = {};
const token = localStorage.getItem("pronouns-token");