@@ -150,46 +135,63 @@ function IndexRoute() {
);
diff --git a/src/routes/_authenticated/settings/account.tsx b/src/routes/_authenticated/settings/account.tsx
index 437490e..040f4ad 100644
--- a/src/routes/_authenticated/settings/account.tsx
+++ b/src/routes/_authenticated/settings/account.tsx
@@ -4,6 +4,8 @@ import {
Form,
Modal,
PageHeader,
+ Select,
+ SelectItem,
Switch,
TextField,
ToggleButton,
@@ -12,7 +14,7 @@ import {
import { useTheme } from "@/utils/useTheme";
import { useAuthActions } from "@convex-dev/auth/react";
import { api } from "@convex/_generated/api";
-import { THEMES } from "@convex/constants";
+import { JURISDICTIONS, type Jurisdiction, THEMES } from "@convex/constants";
import { createFileRoute } from "@tanstack/react-router";
import { useMutation, useQuery } from "convex/react";
import { Pencil, Trash } from "lucide-react";
@@ -71,10 +73,11 @@ const EditNameDialog = ({
onOpenChange: (isOpen: boolean) => void;
onSubmit: () => void;
}) => {
- const updateName = useMutation(api.users.setCurrentUserName);
+ const updateName = useMutation(api.users.setName);
const [name, setName] = useState(defaultName);
- const handleSubmit = () => {
+ const handleSubmit = (e: React.FormEvent