Skip to content
Open
Show file tree
Hide file tree
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
18 changes: 16 additions & 2 deletions components/page-footer/Support.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { PeopleIcon, CommentDiscussionIcon } from '@primer/octicons-react'
import { PeopleIcon, CommentDiscussionIcon, PaperAirplaneIcon } from '@primer/octicons-react'

import { useTranslation } from 'components/hooks/useTranslation'
import { useMainContext } from 'components/context/MainContext'

const TELEGRAM_CHANNEL_URL = process.env.NEXT_PUBLIC_TELEGRAM_CHANNEL_URL || 'https://t.me/github'

export const Support = () => {
const { t } = useTranslation('support')
const { communityRedirect } = useMainContext()
Expand All @@ -20,7 +22,7 @@ export const Support = () => {
{Object.keys(communityRedirect).length === 0 ? t`ask_community` : communityRedirect.name}
</a>
</div>
<div>
<div className="mb-2">
<a
id="contact-us"
href="https://support.github.com/contact"
Expand All @@ -30,6 +32,18 @@ export const Support = () => {
{t`contact_support`}
</a>
</div>
<div>
<a
id="join-telegram-channel"
href={TELEGRAM_CHANNEL_URL}
className="Link—secondary text-bold"
target="_blank"
rel="noopener noreferrer"
>
<PaperAirplaneIcon size="small" className="octicon mr-1" />
{t`join_telegram_channel`}
</a>
</div>
</div>
)
}
1 change: 1 addition & 0 deletions data/ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ support:
still_need_help: Still need help?
contact_support: Contact support
ask_community: Ask the GitHub community
join_telegram_channel: Join Telegram channel
survey:
able_to_find: Did this doc help you?
yes: Yes
Expand Down