Skip to content

Commit 7e11d46

Browse files
committed
Fix fmt and lint
1 parent 7f9a95d commit 7e11d46

File tree

5 files changed

+25
-29
lines changed

5 files changed

+25
-29
lines changed

site/src/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474
/** Related to https://github.com/radix-ui/primitives/issues/3251 */
7575
html body[data-scroll-locked] {
76-
--removed-body-scroll-bar-size: 0 !important;
77-
margin-right: 0 !important;
78-
}
76+
--removed-body-scroll-bar-size: 0 !important;
77+
margin-right: 0 !important;
78+
}
7979
}

site/src/modules/dashboard/Navbar/MobileMenu.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { Meta, StoryObj } from "@storybook/react";
2+
import { fn, userEvent, within } from "@storybook/test";
3+
import { PointerEventsCheckLevel } from "@testing-library/user-event";
4+
import type { FC } from "react";
25
import { chromaticWithTablet } from "testHelpers/chromatic";
3-
import { MobileMenu } from "./MobileMenu";
46
import {
57
MockPrimaryWorkspaceProxy,
68
MockProxyLatencies,
@@ -9,9 +11,7 @@ import {
911
MockUser2,
1012
MockWorkspaceProxies,
1113
} from "testHelpers/entities";
12-
import { fn, userEvent, within } from "@storybook/test";
13-
import { PointerEventsCheckLevel } from "@testing-library/user-event";
14-
import type { FC } from "react";
14+
import { MobileMenu } from "./MobileMenu";
1515

1616
const meta: Meta<typeof MobileMenu> = {
1717
title: "modules/dashboard/MobileMenu",

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
import type * as TypesGen from "api/typesGenerated";
2-
import type { ProxyContextValue } from "contexts/ProxyContext";
3-
import { useState, type FC } from "react";
4-
import { Link } from "react-router-dom";
5-
import { cn } from "utils/cn";
2+
import { Avatar } from "components/Avatar/Avatar";
63
import { Button } from "components/Button/Button";
74
import {
8-
ChevronRightIcon,
9-
CircleHelpIcon,
10-
MenuIcon,
11-
XIcon,
12-
} from "lucide-react";
5+
Collapsible,
6+
CollapsibleContent,
7+
CollapsibleTrigger,
8+
} from "components/Collapsible/Collapsible";
139
import {
1410
DropdownMenu,
1511
DropdownMenuContent,
1612
DropdownMenuItem,
1713
DropdownMenuSeparator,
1814
DropdownMenuTrigger,
1915
} from "components/DropdownMenu/DropdownMenu";
20-
import { Avatar } from "components/Avatar/Avatar";
16+
import { FeatureStageBadge } from "components/FeatureStageBadge/FeatureStageBadge";
17+
import { displayError } from "components/GlobalSnackbar/utils";
2118
import { Latency } from "components/Latency/Latency";
19+
import type { ProxyContextValue } from "contexts/ProxyContext";
2220
import {
23-
Collapsible,
24-
CollapsibleContent,
25-
CollapsibleTrigger,
26-
} from "components/Collapsible/Collapsible";
21+
ChevronRightIcon,
22+
CircleHelpIcon,
23+
MenuIcon,
24+
XIcon,
25+
} from "lucide-react";
26+
import { type FC, useState } from "react";
27+
import { Link } from "react-router-dom";
28+
import { cn } from "utils/cn";
2729
import { sortProxiesByLatency } from "./proxyUtils";
28-
import { displayError } from "components/GlobalSnackbar/utils";
29-
import { FeatureStageBadge } from "components/FeatureStageBadge/FeatureStageBadge";
3030

3131
const itemStyles = {
3232
default: "px-9 h-10 no-underline",

site/src/modules/dashboard/Navbar/NavbarView.test.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ describe("NavbarView", () => {
3131
onSignOut={noop}
3232
canViewDeployment
3333
canViewOrganizations
34-
canViewAllUsers
3534
canViewHealth
3635
canViewAuditLog
3736
/>,
@@ -49,7 +48,6 @@ describe("NavbarView", () => {
4948
onSignOut={noop}
5049
canViewDeployment
5150
canViewOrganizations
52-
canViewAllUsers
5351
canViewHealth
5452
canViewAuditLog
5553
/>,
@@ -67,7 +65,6 @@ describe("NavbarView", () => {
6765
onSignOut={noop}
6866
canViewDeployment
6967
canViewOrganizations
70-
canViewAllUsers
7168
canViewHealth
7269
canViewAuditLog
7370
/>,
@@ -87,7 +84,6 @@ describe("NavbarView", () => {
8784
onSignOut={noop}
8885
canViewDeployment
8986
canViewOrganizations
90-
canViewAllUsers
9187
canViewHealth
9288
canViewAuditLog
9389
/>,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import { CoderIcon } from "components/Icons/CoderIcon";
44
import type { ProxyContextValue } from "contexts/ProxyContext";
55
import type { FC } from "react";
66
import { NavLink, useLocation } from "react-router-dom";
7+
import { cn } from "utils/cn";
78
import { DeploymentDropdown } from "./DeploymentDropdown";
9+
import { MobileMenu } from "./MobileMenu";
810
import { ProxyMenu } from "./ProxyMenu";
911
import { UserDropdown } from "./UserDropdown/UserDropdown";
10-
import { cn } from "utils/cn";
11-
import { MobileMenu } from "./MobileMenu";
1212

1313
export interface NavbarViewProps {
1414
logo_url?: string;

0 commit comments

Comments
 (0)