📑 todods

This commit is contained in:
Timur Ercan
2023-02-28 19:56:01 +01:00
parent 9741959d09
commit f79e7471e0
5 changed files with 8 additions and 0 deletions

View File

@ -86,6 +86,7 @@ export default function TopNavigation() {
});
useEffect(() => {
// todo encapsulate
fetch("/api/users/me").then((res) => {
res.json().then((j) => {
setUser(j);

View File

@ -34,6 +34,7 @@ export default function Setttings() {
});
useEffect(() => {
// todo encapsulate
fetch("/api/users/me").then((res) => {
res.json().then((j) => {
setUser(j);

View File

@ -30,6 +30,7 @@ export default function Signup(props: { source: string }) {
};
const signUp: SubmitHandler<FormValues> = async (data) => {
// todo encapsulate
const res = await toast
.promise(
fetch("/api/auth/signup", {