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.
This commit is contained in:
Asher
2022-05-12 13:34:49 -05:00
committed by GitHub
parent bbb8f836bf
commit 6f7d9bb1e4
4 changed files with 0 additions and 31 deletions
-4
View File
@@ -10,8 +10,6 @@ import { HealthzPage } from "./pages/HealthzPage/HealthzPage"
import { LoginPage } from "./pages/LoginPage/LoginPage"
import { OrgsPage } from "./pages/OrgsPage/OrgsPage"
import { AccountPage } from "./pages/PreferencesPages/AccountPage/AccountPage"
import { LinkedAccountsPage } from "./pages/PreferencesPages/LinkedAccountsPage/LinkedAccountsPage"
import { SecurityPage } from "./pages/PreferencesPages/SecurityPage/SecurityPage"
import { SSHKeysPage } from "./pages/PreferencesPages/SSHKeysPage/SSHKeysPage"
import { SettingsPage } from "./pages/SettingsPage/SettingsPage"
import { CreateWorkspacePage } from "./pages/TemplatesPages/OrganizationPage/TemplatePage/CreateWorkspacePage"
@@ -124,9 +122,7 @@ export const AppRouter: React.FC = () => (
<Route path="preferences" element={<PreferencesLayout />}>
<Route path="account" element={<AccountPage />} />
<Route path="security" element={<SecurityPage />} />
<Route path="ssh-keys" element={<SSHKeysPage />} />
<Route path="linked-accounts" element={<LinkedAccountsPage />} />
</Route>
<Route path=":username">
@@ -7,17 +7,13 @@ import { TabPanel } from "../TabPanel/TabPanel"
export const Language = {
accountLabel: "Account",
securityLabel: "Security",
sshKeysLabel: "SSH Keys",
linkedAccountsLabel: "Linked Accounts",
preferencesLabel: "Preferences",
}
const menuItems = [
{ label: Language.accountLabel, path: "/preferences/account" },
{ label: Language.securityLabel, path: "/preferences/security" },
{ label: Language.sshKeysLabel, path: "/preferences/ssh-keys" },
{ label: Language.linkedAccountsLabel, path: "/preferences/linked-accounts" },
]
export const PreferencesLayout: React.FC = () => {
@@ -1,12 +0,0 @@
import React from "react"
import { Section } from "../../../components/Section/Section"
const Language = {
title: "Linked Accounts",
description:
"Linking your Coder account will add your workspace SSH key, allowing you to perform Git actions on all your workspaces.",
}
export const LinkedAccountsPage: React.FC = () => {
return <Section title={Language.title} description={Language.description} />
}
@@ -1,11 +0,0 @@
import React from "react"
import { Section } from "../../../components/Section/Section"
const Language = {
title: "Security",
description: "Changing your password will sign you out of your current session.",
}
export const SecurityPage: React.FC = () => {
return <Section title={Language.title} description={Language.description} />
}