Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Contribution.tsx 1.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  1. import { GitPullRequestIcon } from '@primer/octicons-react'
  2. import { useMainContext } from 'components/context/MainContext'
  3. import { useTranslation } from 'components/hooks/useTranslation'
  4. export const Contribution = () => {
  5. const { relativePath } = useMainContext()
  6. const { t } = useTranslation('contribution_cta')
  7. const contribution_href = relativePath
  8. ? `https://github.com/github/docs/edit/main/content/${relativePath}`
  9. : 'https://github.com/github/docs'
  10. return (
  11. <div className="f5 contribution">
  12. <h2 className="f4">{t`title`}</h2>
  13. <p className="color-text-secondary f6">{t`body`}</p>
  14. <a className="btn btn-outline" href={contribution_href}>
  15. <GitPullRequestIcon size="small" className="octicon mr-1" />
  16. {t`button`}
  17. </a>
  18. <p className="color-text-secondary f6 mt-2">
  19. {t`or`}{' '}
  20. <a
  21. href="https://github.com/github/docs/blob/main/CONTRIBUTING.md"
  22. target="_blank"
  23. rel="noopener"
  24. >
  25. {t`to_guidelines`}
  26. </a>
  27. </p>
  28. </div>
  29. )
  30. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...