From a36cd0bd7b1e81c635929b72f2992ecd7efaab00 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Wed, 4 Jan 2023 12:36:25 -0600 Subject: [PATCH] refactor: move footer items into the user dropdown (#5562) * refactor: move footer items into the user dropdown The items at the bottom looked unprofessional. Users don't always need to be prompted to join our Discord or see the active version of Coder. This moves the items in the user dropdown which looks better. * Update site/src/components/UserDropdownContent/UserDropdownContent.tsx Co-authored-by: Asher * Fix import order Co-authored-by: Asher --- .../components/AuthAndFrame/AuthAndFrame.tsx | 3 - .../DeploySettingsLayout/Badges.tsx | 22 +++++ site/src/components/Footer/Footer.stories.tsx | 17 ---- site/src/components/Footer/Footer.test.tsx | 22 ----- site/src/components/Footer/Footer.tsx | 98 ------------------- site/src/components/Navbar/Navbar.tsx | 2 + site/src/components/NavbarView/NavbarView.tsx | 10 +- .../components/SignInLayout/SignInLayout.tsx | 3 +- .../components/UserDropdown/UsersDropdown.tsx | 4 +- .../UserDropdownContent.test.tsx | 7 +- .../UserDropdownContent.tsx | 82 ++++++++++++++-- .../GeneralSettingsPage.tsx | 2 - 12 files changed, 119 insertions(+), 153 deletions(-) delete mode 100644 site/src/components/Footer/Footer.stories.tsx delete mode 100644 site/src/components/Footer/Footer.test.tsx delete mode 100644 site/src/components/Footer/Footer.tsx diff --git a/site/src/components/AuthAndFrame/AuthAndFrame.tsx b/site/src/components/AuthAndFrame/AuthAndFrame.tsx index e0256915aa..c3a5a5ecc7 100644 --- a/site/src/components/AuthAndFrame/AuthAndFrame.tsx +++ b/site/src/components/AuthAndFrame/AuthAndFrame.tsx @@ -3,7 +3,6 @@ import { useActor } from "@xstate/react" import { Loader } from "components/Loader/Loader" import { FC, Suspense, useContext, useEffect } from "react" import { XServiceContext } from "../../xServices/StateContext" -import { Footer } from "../Footer/Footer" import { Navbar } from "../Navbar/Navbar" import { RequireAuth } from "../RequireAuth/RequireAuth" import { UpdateCheckBanner } from "components/UpdateCheckBanner/UpdateCheckBanner" @@ -20,7 +19,6 @@ export const AuthAndFrame: FC = ({ children }) => { const styles = useStyles() const xServices = useContext(XServiceContext) const [authState] = useActor(xServices.authXService) - const [buildInfoState] = useActor(xServices.buildInfoXService) const [updateCheckState, updateCheckSend] = useActor( xServices.updateCheckXService, ) @@ -51,7 +49,6 @@ export const AuthAndFrame: FC = ({ children }) => {
}>{children}
-