File tree Expand file tree Collapse file tree 5 files changed +0
-26
lines changed
site/src/modules/dashboard/Navbar Expand file tree Collapse file tree 5 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ const meta: Meta<typeof MobileMenu> = {
39
39
} ,
40
40
user : MockUser ,
41
41
supportLinks : MockSupportLinks ,
42
- docsHref : "https://coder.com/docs" ,
43
42
onSignOut : fn ( ) ,
44
43
isDefaultOpen : true ,
45
44
canViewAuditLog : true ,
Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ type MobileMenuProps = MobileMenuPermissions & {
45
45
proxyContextValue ?: ProxyContextValue ;
46
46
user ?: TypesGen . User ;
47
47
supportLinks ?: readonly TypesGen . LinkConfig [ ] ;
48
- docsHref : string ;
49
48
onSignOut : ( ) => void ;
50
49
isDefaultOpen ?: boolean ; // Useful for storybook
51
50
} ;
@@ -55,7 +54,6 @@ export const MobileMenu: FC<MobileMenuProps> = ({
55
54
proxyContextValue,
56
55
user,
57
56
supportLinks,
58
- docsHref,
59
57
onSignOut,
60
58
...permissions
61
59
} ) => {
@@ -90,12 +88,6 @@ export const MobileMenu: FC<MobileMenuProps> = ({
90
88
</ >
91
89
) }
92
90
< DropdownMenuSeparator />
93
- < DropdownMenuItem asChild className = { itemStyles . default } >
94
- < a href = { docsHref } target = "_blank" rel = "noreferrer norefereer" >
95
- Docs
96
- </ a >
97
- </ DropdownMenuItem >
98
- < DropdownMenuSeparator />
99
91
< UserSettingsSub
100
92
user = { user }
101
93
supportLinks = { supportLinks }
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ export const Navbar: FC = () => {
35
35
canViewHealth = { canViewHealth }
36
36
canViewAuditLog = { canViewAuditLog }
37
37
proxyContextValue = { proxyContextValue }
38
- docsHref = { appearance . docs_url }
39
38
/>
40
39
) ;
41
40
} ;
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ describe("NavbarView", () => {
25
25
it ( "workspaces nav link has the correct href" , async ( ) => {
26
26
renderWithAuth (
27
27
< NavbarView
28
- docsHref = "https://docs.coder.com"
29
28
proxyContextValue = { proxyContextValue }
30
29
user = { MockUser }
31
30
onSignOut = { noop }
@@ -43,7 +42,6 @@ describe("NavbarView", () => {
43
42
it ( "templates nav link has the correct href" , async ( ) => {
44
43
renderWithAuth (
45
44
< NavbarView
46
- docsHref = "https://docs.coder.com"
47
45
proxyContextValue = { proxyContextValue }
48
46
user = { MockUser }
49
47
onSignOut = { noop }
@@ -61,7 +59,6 @@ describe("NavbarView", () => {
61
59
it ( "audit nav link has the correct href" , async ( ) => {
62
60
renderWithAuth (
63
61
< NavbarView
64
- docsHref = "https://docs.coder.com"
65
62
proxyContextValue = { proxyContextValue }
66
63
user = { MockUser }
67
64
onSignOut = { noop }
@@ -80,7 +77,6 @@ describe("NavbarView", () => {
80
77
it ( "deployment nav link has the correct href" , async ( ) => {
81
78
renderWithAuth (
82
79
< NavbarView
83
- docsHref = "https://docs.coder.com"
84
80
proxyContextValue = { proxyContextValue }
85
81
user = { MockUser }
86
82
onSignOut = { noop }
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import { UserDropdown } from "./UserDropdown/UserDropdown";
13
13
export interface NavbarViewProps {
14
14
logo_url ?: string ;
15
15
user ?: TypesGen . User ;
16
- docsHref : string ;
17
16
buildInfo ?: TypesGen . BuildInfoResponse ;
18
17
supportLinks ?: readonly TypesGen . LinkConfig [ ] ;
19
18
onSignOut : ( ) => void ;
@@ -33,7 +32,6 @@ const linkStyles = {
33
32
export const NavbarView : FC < NavbarViewProps > = ( {
34
33
user,
35
34
logo_url,
36
- docsHref,
37
35
buildInfo,
38
36
supportLinks,
39
37
onSignOut,
@@ -67,15 +65,6 @@ export const NavbarView: FC<NavbarViewProps> = ({
67
65
canViewHealth = { canViewHealth }
68
66
/>
69
67
70
- < a
71
- className = { linkStyles . default }
72
- href = { docsHref }
73
- target = "_blank"
74
- rel = "noreferrer"
75
- >
76
- Docs
77
- </ a >
78
-
79
68
{ user && (
80
69
< UserDropdown
81
70
user = { user }
@@ -90,7 +79,6 @@ export const NavbarView: FC<NavbarViewProps> = ({
90
79
proxyContextValue = { proxyContextValue }
91
80
user = { user }
92
81
supportLinks = { supportLinks }
93
- docsHref = { docsHref }
94
82
onSignOut = { onSignOut }
95
83
canViewAuditLog = { canViewAuditLog }
96
84
canViewOrganizations = { canViewOrganizations }
You can’t perform that action at this time.
0 commit comments