Skip to content

Commit

Permalink
refactor(web): refactor currentWorkspaceId (#1165)
Browse files Browse the repository at this point in the history
Co-authored-by: tcsola <[email protected]>
  • Loading branch information
ZTongci and tcsola authored Oct 2, 2024
1 parent 12bf6b7 commit cef4bde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/src/beta/features/AccountAndWorkSpaceSetting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const AccountAndWorkSpaceSetting: FC<Props> = ({ tab }) => {

return (
<Wrapper>
<Navbar workspaceId={meData.myTeam?.id} page="settings" />
<Navbar page="settings" />
<MainSection>
<LeftSidePanel>
<SidebarWrapper>
Expand Down
2 changes: 1 addition & 1 deletion web/src/beta/features/Navbar/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default ({
return {
workspaces,
currentProject,
workspace,
currentWorkspace,
handleWorkspaceChange,
handleLogout
};
Expand Down
4 changes: 2 additions & 2 deletions web/src/beta/features/Navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Navbar: React.FC<Props> = ({
}) => {
const {
currentProject,
workspace,
currentWorkspace,
workspaces,
handleLogout,
handleWorkspaceChange
Expand All @@ -50,7 +50,7 @@ const Navbar: React.FC<Props> = ({
<Wrapper>
<LeftSection
currentProject={currentProject}
currentWorkspace={workspace}
currentWorkspace={currentWorkspace}
workspaces={workspaces}
sceneId={sceneId}
page={page}
Expand Down

0 comments on commit cef4bde

Please sign in to comment.