Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions site/src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Link from "@material-ui/core/Link"
import { makeStyles } from "@material-ui/core/styles"
import AccountTreeIcon from "@material-ui/icons/AccountTree"
import AssistantIcon from "@material-ui/icons/Assistant"
import ChatIcon from "@material-ui/icons/Chat"
import * as TypesGen from "../../api/typesGenerated"

export const Language = {
Expand All @@ -10,6 +11,7 @@ export const Language = {
},
copyrightText: `Copyright \u00a9 ${new Date().getFullYear()} Coder Technologies, Inc. All rights reserved.`,
reportBugLink: "Report an issue or share feedback",
discordLink: "Join Coder on Discord",
}

export interface FooterProps {
Expand All @@ -20,6 +22,7 @@ export const Footer: React.FC<FooterProps> = ({ buildInfo }) => {
const styles = useFooterStyles()

const githubUrl = `https://github.com/coder/coder/issues/new?labels=bug,needs+grooming&title=Bug+in+${buildInfo?.version}:&template=external_bug_report.md`
const discordUrl = `https://discord.gg/coder`

return (
<div className={styles.root}>
Expand All @@ -38,6 +41,10 @@ export const Footer: React.FC<FooterProps> = ({ buildInfo }) => {
<Link className={styles.link} variant="caption" target="_blank" href={githubUrl}>
<AssistantIcon className={styles.icon} /> {Language.reportBugLink}
</Link>
&nbsp;|&nbsp;
<Link className={styles.link} variant="caption" target="_blank" href={discordUrl}>
<ChatIcon className={styles.icon} /> {Language.discordLink}
</Link>
</div>
)}
</div>
Expand Down