Skip to content

Commit 5bdfdcb

Browse files
authored
Added link to our Discord server in the account menu (#4634)
1 parent a19aaf9 commit 5bdfdcb

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

changelog/+discord-link.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added link to our Discord server in the account menu

frontend/app/src/components/account-menu.tsx

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ import {
99
DropdownMenuItem,
1010
DropdownMenuTrigger,
1111
} from "@/components/ui/dropdown-menu";
12-
import { INFRAHUB_DOC_LOCAL, INFRAHUB_GITHUB_URL, INFRAHUB_SWAGGER_DOC_URL } from "@/config/config";
12+
import {
13+
INFRAHUB_DISCORD_URL,
14+
INFRAHUB_DOC_LOCAL,
15+
INFRAHUB_GITHUB_URL,
16+
INFRAHUB_SWAGGER_DOC_URL,
17+
} from "@/config/config";
1318
import { ACCOUNT_GENERIC_OBJECT } from "@/config/constants";
1419
import { getProfileDetails } from "@/graphql/queries/accounts/getProfileDetails";
1520
import { useAuth } from "@/hooks/useAuth";
@@ -41,13 +46,6 @@ export const AccountMenu = () => {
4146

4247
const CommonMenuItems = () => (
4348
<>
44-
<DropdownMenuItem asChild>
45-
<Link to={INFRAHUB_GITHUB_URL} target="_blank" rel="noreferrer">
46-
<Icon icon="mdi:github" className="text-base" />
47-
GitHub Repository
48-
</Link>
49-
</DropdownMenuItem>
50-
5149
<DropdownMenuItem asChild>
5250
<Link to={INFRAHUB_DOC_LOCAL} target="_blank" rel="noreferrer">
5351
<Icon icon="mdi:file-document" className="text-base" />
@@ -68,6 +66,22 @@ const CommonMenuItems = () => (
6866
Swagger documentation
6967
</Link>
7068
</DropdownMenuItem>
69+
70+
<DropdownMenuDivider />
71+
72+
<DropdownMenuItem asChild>
73+
<Link to={INFRAHUB_GITHUB_URL} target="_blank" rel="noreferrer">
74+
<Icon icon="mdi:github" className="text-base" />
75+
GitHub Repository
76+
</Link>
77+
</DropdownMenuItem>
78+
79+
<DropdownMenuItem asChild>
80+
<Link to={INFRAHUB_DISCORD_URL} target="_blank" rel="noreferrer">
81+
<Icon icon="mdi:discord" className="text-base" />
82+
Join our Discord server
83+
</Link>
84+
</DropdownMenuItem>
7185
</>
7286
);
7387

frontend/app/src/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const INFRAHUB_GITHUB_URL = "https://github.com/opsmill/infrahub";
2-
2+
export const INFRAHUB_DISCORD_URL = "https://discord.gg/opsmill";
33
export const INFRAHUB_DOC_URL = "https://docs.infrahub.app";
44

55
export const INFRAHUB_API_SERVER_URL = import.meta.env.DEV

0 commit comments

Comments
 (0)