1
0
mirror of synced 2025-12-23 21:07:12 -05:00

Community redirect update to camel case and adding documentation (#21979)

* update to camel case

* add documentation on communityRedirect
This commit is contained in:
Grace Park
2021-10-07 15:02:58 -07:00
committed by GitHub
parent b9a3683ff1
commit 4727433baa
9 changed files with 18 additions and 14 deletions

View File

@@ -7,7 +7,7 @@ import { useMainContext } from 'components/context/MainContext'
export const Support = () => {
const { isEnterprise } = useVersion()
const { t } = useTranslation('support')
const { community_redirect } = useMainContext()
const { communityRedirect } = useMainContext()
return (
<div>
@@ -15,13 +15,11 @@ export const Support = () => {
<div className="mb-2">
<a
id="ask-community"
href={community_redirect.href || 'https://github.community/'}
href={communityRedirect.href || 'https://github.community/'}
className="Link—secondary text-bold"
>
<PeopleIcon size="small" className="octicon mr-1" />
{Object.keys(community_redirect).length === 0
? t`ask_community`
: community_redirect.name}
{Object.keys(communityRedirect).length === 0 ? t`ask_community` : communityRedirect.name}
</a>
</div>
<div>