refactored system settings
This commit is contained in:
@@ -6,6 +6,7 @@ import { toast } from "sonner";
|
||||
|
||||
const NPEDFields = () => {
|
||||
const { signIn, user, signOut } = useNPEDAuth();
|
||||
|
||||
const initialValues = user
|
||||
? {
|
||||
username: user.propUsername.value,
|
||||
|
||||
@@ -7,7 +7,7 @@ const NPEDHotlist = () => {
|
||||
};
|
||||
|
||||
const handleSubmit = (values: HotlistUploadType) => console.log(values.file);
|
||||
|
||||
// upload/hotlist-upload/2
|
||||
return (
|
||||
<Formik initialValues={initialValue} onSubmit={handleSubmit}>
|
||||
{({ setFieldValue, setErrors, errors }) => {
|
||||
|
||||
Reference in New Issue
Block a user