fix(AdminPage/index.tsx): fix asynchronous handling of updateUser function to properly reset filter and set success data after user update
fix(styleUtils.ts): fix import statement for GradientSparkles component to use curly braces for named import
This commit is contained in:
parent
732c140fb7
commit
249cf833fa
3 changed files with 449 additions and 432 deletions
868
src/frontend/package-lock.json
generated
868
src/frontend/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -185,11 +185,12 @@ export default function AdminPage() {
|
||||||
updateUser(res["id"], {
|
updateUser(res["id"], {
|
||||||
is_active: user.is_active,
|
is_active: user.is_active,
|
||||||
is_superuser: user.is_superuser,
|
is_superuser: user.is_superuser,
|
||||||
});
|
}).then((res) => {
|
||||||
resetFilter();
|
resetFilter();
|
||||||
setSuccessData({
|
setSuccessData({
|
||||||
title: "Success! New user added!",
|
title: "Success! New user added!",
|
||||||
});
|
});
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
setErrorData({
|
setErrorData({
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ import { EvernoteIcon } from "../icons/Evernote";
|
||||||
import { FBIcon } from "../icons/FacebookMessenger";
|
import { FBIcon } from "../icons/FacebookMessenger";
|
||||||
import { GitBookIcon } from "../icons/GitBook";
|
import { GitBookIcon } from "../icons/GitBook";
|
||||||
import { GoogleIcon } from "../icons/Google";
|
import { GoogleIcon } from "../icons/Google";
|
||||||
import GradientSparkles from "../icons/GradientSparkles";
|
import {GradientSparkles} from "../icons/GradientSparkles";
|
||||||
import { HuggingFaceIcon } from "../icons/HuggingFace";
|
import { HuggingFaceIcon } from "../icons/HuggingFace";
|
||||||
import { IFixIcon } from "../icons/IFixIt";
|
import { IFixIcon } from "../icons/IFixIt";
|
||||||
import { MetaIcon } from "../icons/Meta";
|
import { MetaIcon } from "../icons/Meta";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue