From 805b0fa96fa981b9b0a72e5065df4c4378ef67ed Mon Sep 17 00:00:00 2001 From: Antoine Dewez <44063631+Zewed@users.noreply.github.com> Date: Thu, 11 Jul 2024 15:43:03 +0200 Subject: [PATCH] fix(frontend): general before connections (#2848) # Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate): --- frontend/app/user/page.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/app/user/page.tsx b/frontend/app/user/page.tsx index ed30b54c884..2b84a506eec 100644 --- a/frontend/app/user/page.tsx +++ b/frontend/app/user/page.tsx @@ -34,7 +34,7 @@ const UserPage = (): JSX.Element => { isLogoutModalOpened, setIsLogoutModalOpened, } = useLogoutModal(); - const [selectedTab, setSelectedTab] = useState("Connections"); + const [selectedTab, setSelectedTab] = useState("General"); const { remainingCredits, setRemainingCredits } = useUserSettingsContext(); useEffect(() => { @@ -64,18 +64,18 @@ const UserPage = (): JSX.Element => { ]; const studioTabs: Tab[] = [ - { - label: "Connections", - isSelected: selectedTab === "Connections", - onClick: () => setSelectedTab("Connections"), - iconName: "sync", - }, { label: "General", isSelected: selectedTab === "General", onClick: () => setSelectedTab("General"), iconName: "user", }, + { + label: "Connections", + isSelected: selectedTab === "Connections", + onClick: () => setSelectedTab("Connections"), + iconName: "sync", + }, ]; if (!session || !userData) {