clean up & update edit profile modal

This commit is contained in:
Ren Amamiya
2023-08-27 08:19:42 +07:00
parent fe28cd95bd
commit 53227c7050
10 changed files with 314 additions and 749 deletions

View File

@@ -7,9 +7,7 @@ import { useImageUploader } from '@utils/hooks/useUploader';
export function AvatarUploader({
setPicture,
}: {
setPicture: Dispatch<
SetStateAction<{ url: undefined | string; error?: undefined | string }>
>;
setPicture: Dispatch<SetStateAction<string>>;
}) {
const upload = useImageUploader();
const [loading, setLoading] = useState(false);