Skip to content

Commit

Permalink
refactor: refactor according to design and add menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
tcsola authored and tcsola committed Oct 9, 2024
1 parent ded91a0 commit d5825d3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const WorkspaceSetting: FC<Props> = ({
title={t("Workspace Name")}
value={currentWorkspace?.name ? t(currentWorkspace.name) : ""}
onChange={setWorkspaceName}
appearance={currentWorkspace?.personal ? "readonly" : "present"}
appearance={currentWorkspace?.personal ? "readonly" : undefined}
disabled={currentWorkspace?.personal}
/>
<ButtonWrapper>
Expand Down
6 changes: 6 additions & 0 deletions web/src/beta/features/Dashboard/LeftSidePanel/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ export const Profile: FC<ProfileProp> = ({
};
})
},
{
id: "workspaceSettings",
title: t("Workspace Settings"),
icon: "setting",
onClick: () => navigate("/settings/workspace")
},
{
id: "accountSettings",
title: t("Account Settings"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Content = styled("div")(() => ({

const ActionWrapper = styled("div")<{ showBorder: boolean }>(
({ theme, showBorder }) => ({
padding: theme.spacing.normal,
padding: theme.spacing.large,
background: theme.bg[1],
borderBottomRightRadius: theme.radius.large,
borderBottomLeftRadius: theme.radius.large,
Expand Down
3 changes: 3 additions & 0 deletions web/src/beta/lib/reearth-ui/components/PopupMenu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ const Item = styled("div")<{
backgroundColor: "transparent",
"&:hover": {
backgroundColor: `${theme.bg[2]}`
},
"&:nth-child(2)": {
borderBottom: `1px solid ${theme.outline.weak}`
}
}));

Expand Down
1 change: 1 addition & 0 deletions web/src/services/i18n/translations/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Starred: ''
Switch WorkSpace: ''
Personal: ''
Team Workspace: ''
Workspace Settings: ''
Account Settings: ''
Log Out: ''
Re:Earth Visualizer: ''
Expand Down
1 change: 1 addition & 0 deletions web/src/services/i18n/translations/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ Starred: ''
Switch WorkSpace: ''
Personal: ''
Team Workspace: ''
Workspace Settings: ''
Account Settings: ''
Log Out: ''
Re:Earth Visualizer: ''
Expand Down

0 comments on commit d5825d3

Please sign in to comment.