Skip to content

Commit 6f7d9bb

Browse files
authored
fix: remove unimplemented account pages (#1411)
It appears unclear as of now when/if these will be implemented so I opted to remove them (as opposed to commenting them out) to avoid having them rot (they are easily added back anyway). Closes #1232.
1 parent bbb8f83 commit 6f7d9bb

File tree

4 files changed

+0
-31
lines changed

4 files changed

+0
-31
lines changed

site/src/AppRouter.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { HealthzPage } from "./pages/HealthzPage/HealthzPage"
1010
import { LoginPage } from "./pages/LoginPage/LoginPage"
1111
import { OrgsPage } from "./pages/OrgsPage/OrgsPage"
1212
import { AccountPage } from "./pages/PreferencesPages/AccountPage/AccountPage"
13-
import { LinkedAccountsPage } from "./pages/PreferencesPages/LinkedAccountsPage/LinkedAccountsPage"
14-
import { SecurityPage } from "./pages/PreferencesPages/SecurityPage/SecurityPage"
1513
import { SSHKeysPage } from "./pages/PreferencesPages/SSHKeysPage/SSHKeysPage"
1614
import { SettingsPage } from "./pages/SettingsPage/SettingsPage"
1715
import { CreateWorkspacePage } from "./pages/TemplatesPages/OrganizationPage/TemplatePage/CreateWorkspacePage"
@@ -124,9 +122,7 @@ export const AppRouter: React.FC = () => (
124122

125123
<Route path="preferences" element={<PreferencesLayout />}>
126124
<Route path="account" element={<AccountPage />} />
127-
<Route path="security" element={<SecurityPage />} />
128125
<Route path="ssh-keys" element={<SSHKeysPage />} />
129-
<Route path="linked-accounts" element={<LinkedAccountsPage />} />
130126
</Route>
131127

132128
<Route path=":username">

site/src/components/PreferencesLayout/PreferencesLayout.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ import { TabPanel } from "../TabPanel/TabPanel"
77

88
export const Language = {
99
accountLabel: "Account",
10-
securityLabel: "Security",
1110
sshKeysLabel: "SSH Keys",
12-
linkedAccountsLabel: "Linked Accounts",
1311
preferencesLabel: "Preferences",
1412
}
1513

1614
const menuItems = [
1715
{ label: Language.accountLabel, path: "/preferences/account" },
18-
{ label: Language.securityLabel, path: "/preferences/security" },
1916
{ label: Language.sshKeysLabel, path: "/preferences/ssh-keys" },
20-
{ label: Language.linkedAccountsLabel, path: "/preferences/linked-accounts" },
2117
]
2218

2319
export const PreferencesLayout: React.FC = () => {

site/src/pages/PreferencesPages/LinkedAccountsPage/LinkedAccountsPage.tsx

-12
This file was deleted.

site/src/pages/PreferencesPages/SecurityPage/SecurityPage.tsx

-11
This file was deleted.

0 commit comments

Comments
 (0)