Skip to content

Commit c95dbed

Browse files
committed
🧹
1 parent 25cc464 commit c95dbed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

site/src/modules/dashboard/Navbar/UserDropdown/UserDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { css, type Interpolation, type Theme, useTheme } from "@emotion/react";
22
import Badge from "@mui/material/Badge";
33
import type { FC } from "react";
44
import { useQuery } from "react-query";
5+
import { myOrganizations } from "api/queries/users";
56
import type * as TypesGen from "api/typesGenerated";
67
import { DropdownArrow } from "components/DropdownArrow/DropdownArrow";
78
import {
@@ -12,7 +13,6 @@ import {
1213
import { UserAvatar } from "components/UserAvatar/UserAvatar";
1314
import { BUTTON_SM_HEIGHT, navHeight } from "theme/constants";
1415
import { UserDropdownContent } from "./UserDropdownContent";
15-
import { myOrganizations } from "api/queries/users";
1616

1717
export interface UserDropdownProps {
1818
user: TypesGen.User;

site/src/modules/dashboard/Navbar/UserDropdown/UserDropdownContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export const UserDropdownContent: FC<UserDropdownContentProps> = ({
157157
{/* <LogoutIcon css={styles.menuItemIcon} /> */}
158158
<Stack direction="row" spacing={1} css={styles.menuItemText}>
159159
{org.name}
160-
{organizationId == org.id && (
160+
{organizationId === org.id && (
161161
<span css={{ fontSize: 12, color: "gray" }}>Current</span>
162162
)}
163163
</Stack>
@@ -166,7 +166,7 @@ export const UserDropdownContent: FC<UserDropdownContentProps> = ({
166166
</div>
167167
)}
168168

169-
<Divider css={{ marginBottom: 8 }} />
169+
<Divider css={{ marginTop: organizations ? 8 : 0, marginBottom: 8 }} />
170170

171171
<Link to="/settings/account" css={styles.link}>
172172
<MenuItem css={styles.menuItem} onClick={onPopoverClose}>

0 commit comments

Comments
 (0)