diff --git a/apps/cyberstorm-remix/app/settings/user/Account/Account.tsx b/apps/cyberstorm-remix/app/settings/user/Account/Account.tsx index 6c65a6fbe..2af2d6a7e 100644 --- a/apps/cyberstorm-remix/app/settings/user/Account/Account.tsx +++ b/apps/cyberstorm-remix/app/settings/user/Account/Account.tsx @@ -1,12 +1,17 @@ import { faTrashCan } from "@fortawesome/pro-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { useStrongForm } from "cyberstorm/utils/StrongForm/useStrongForm"; +import { + NimbusErrorBoundary, + NimbusErrorBoundaryFallback, + type NimbusErrorBoundaryFallbackProps, +} from "cyberstorm/utils/errors/NimbusErrorBoundary"; import { useReducer } from "react"; import { useNavigate, useOutletContext, useRevalidator } from "react-router"; import { useHydrated } from "remix-utils/use-hydrated"; import { Loading } from "~/commonComponents/Loading/Loading"; import { NotLoggedIn } from "~/commonComponents/NotLoggedIn/NotLoggedIn"; -import { type OutletContextShape } from "~/root"; +import type { OutletContextShape } from "~/root"; import { NewAlert, @@ -15,8 +20,12 @@ import { NewTextInput, useToast, } from "@thunderstore/cyberstorm"; -import { UserFacingError, userDelete } from "@thunderstore/thunderstore-api"; +import { + UserFacingError, + formatUserFacingError, + userDelete, +} from "../../../../../../packages/thunderstore-api/src"; import "./Account.css"; export default function Account() { @@ -32,44 +41,70 @@ export default function Account() { } return ( -
Delete Account
-- Delete your Thunderstore account permanently -
-
- The mods that have been uploaded on this account will remain
- public on the site even after deletion. If you need them to be
- taken down as well, please contact an administrator on the
- community Discord server.
- Delete Account
+ Delete your Thunderstore account permanently
+ The mods that have been uploaded on this account will remain
+ public on the site even after deletion. If you need them to be
+ taken down as well, please contact an administrator on the
+ community Discord server.
+
-
- As a precaution, to delete your account, please input{" "}
-
- {outletContext.currentUser.username}
- {" "}
- into the field below.
-
+
+
+ As a precaution, to delete your account, please input{" "}
+
+ {outletContext.currentUser.username}
+ {" "}
+ into the field below.
+
+