Skip to content

Commit

Permalink
fix(frontend): general before connections (#2848)
Browse files Browse the repository at this point in the history
# 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):
  • Loading branch information
Zewed committed Jul 11, 2024
1 parent 29cdbca commit 805b0fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/app/user/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 805b0fa

Please sign in to comment.