From 0aadc2db2a42fc99538fbbb096b84b209b9ccd68 Mon Sep 17 00:00:00 2001
From: tobi <31960611+tsmethurst@users.noreply.github.com>
Date: Wed, 17 Jul 2024 16:46:52 +0200
Subject: [feature] Allow users to set default interaction policies per status
 visibility (#3108)

* [feature] Allow users to set default interaction policies

* use vars for default policies

* avoid some code repetition

* unfuck form binding

* avoid bonkers loop

* beep boop

* put policyValsToAPIPolicyVals in separate function

* don't bother with slices.Grow

* oops
---
 web/source/settings/views/user/router.tsx | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'web/source/settings/views/user/router.tsx')

diff --git a/web/source/settings/views/user/router.tsx b/web/source/settings/views/user/router.tsx
index e763c0c2b..5b74aee68 100644
--- a/web/source/settings/views/user/router.tsx
+++ b/web/source/settings/views/user/router.tsx
@@ -23,11 +23,13 @@ import { Redirect, Route, Router, Switch } from "wouter";
 import { ErrorBoundary } from "../../lib/navigation/error";
 import UserProfile from "./profile";
 import UserMigration from "./migration";
-import UserSettings from "./settings";
+import PostSettings from "./posts";
+import EmailPassword from "./emailpassword";
 
 /**
  * - /settings/user/profile
- * - /settings/user/settings
+ * - /settings/user/posts
+ * - /settings/user/emailpassword
  * - /settings/user/migration
  */
 export default function UserRouter() {
@@ -41,7 +43,8 @@ export default function UserRouter() {
 				<ErrorBoundary>
 					<Switch>
 						<Route path="/profile" component={UserProfile} />
-						<Route path="/settings" component={UserSettings} />
+						<Route path="/posts" component={PostSettings} />
+						<Route path="/emailpassword" component={EmailPassword} />
 						<Route path="/migration" component={UserMigration} />
 						<Route><Redirect to="/profile" /></Route>
 					</Switch>
-- 
cgit v1.2.3

