feat: start making EditMe functional
This commit is contained in:
parent
6cc4d4c41d
commit
e31f96110b
4 changed files with 76 additions and 31 deletions
|
@ -1,4 +1,4 @@
|
|||
import React, { ReactNode, PropsWithChildren } from "react";
|
||||
import React, { ReactNode } from "react";
|
||||
|
||||
export type Props = {
|
||||
children?: ReactNode | undefined;
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue