Upload provider
This commit is contained in:
@@ -27,7 +27,6 @@ export default function Profile({ onBack }: ProfileProps) {
|
|||||||
avatar: currentUser?.avatar || '',
|
avatar: currentUser?.avatar || '',
|
||||||
});
|
});
|
||||||
|
|
||||||
const [avatarFile, setAvatarFile] = React.useState<File | null>(null);
|
|
||||||
const [uploadingAvatar, setUploadingAvatar] = React.useState(false);
|
const [uploadingAvatar, setUploadingAvatar] = React.useState(false);
|
||||||
const [success, setSuccess] = React.useState<string | null>(null);
|
const [success, setSuccess] = React.useState<string | null>(null);
|
||||||
const [saving, setSaving] = React.useState(false);
|
const [saving, setSaving] = React.useState(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user