Failed to load.
} - {searching && ( + {showSkeleton && (- No posts found. Create one{" "} - - here - - . -
- )} - {!searching && posts?.length > 0 && ( + {!showSkeleton && posts?.length > 0 && (+ No posts found. Create one{" "} + + here + + . +
+ ) +} diff --git a/src/app/components/post-list/list-item.tsx b/src/app/components/post-list/list-item.tsx index 9e7353b7..7e1dd25d 100644 --- a/src/app/components/post-list/list-item.tsx +++ b/src/app/components/post-list/list-item.tsx @@ -72,7 +72,7 @@ const ListItem = ({ <>Name | @@ -144,7 +104,6 @@ const APIKeys = ({ tokens: initialTokens }: { tokens?: SerializedApiToken[] }) = diff --git a/src/app/settings/components/sections/profile.tsx b/src/app/settings/components/sections/profile.tsx index 283bdac0..23c76452 100644 --- a/src/app/settings/components/sections/profile.tsx +++ b/src/app/settings/components/sections/profile.tsx @@ -5,7 +5,7 @@ import Input from "@components/input" import Note from "@components/note" import { useToasts } from "@components/toasts" import { useSession } from "next-auth/react" -import { useState } from "react" +import { useEffect, useState } from "react" import styles from "./profile.module.css" const Profile = () => { @@ -14,6 +14,12 @@ const Profile = () => { const [submitting, setSubmitting] = useState
---|