Skip to content

Commit 0ce7b00

Browse files
committed
fix: linting
1 parent 7620a8e commit 0ce7b00

2 files changed

Lines changed: 16 additions & 30 deletions

File tree

components/SmallFooter.tsx

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { MarkGithubIcon } from "@primer/octicons-react";
2-
import { useTranslation } from "components/hooks/useTranslation";
1+
import { MarkGithubIcon } from '@primer/octicons-react'
2+
import { useTranslation } from 'components/hooks/useTranslation'
33

44
export const SmallFooter = () => {
55
const { t } = useTranslation('footer')
@@ -12,51 +12,37 @@ export const SmallFooter = () => {
1212
<span>&copy; {new Date().getFullYear()} GitHub, Inc.</span>
1313
</li>
1414
<li className="ml-3">
15-
<a href="/github/site-policy/github-terms-of-service">
16-
{t`terms`}
17-
</a>
15+
<a href="/github/site-policy/github-terms-of-service">{t`terms`}</a>
1816
</li>
1917
<li className="ml-3">
20-
<a href="/github/site-policy/github-privacy-statement">
21-
{t`privacy`}{" "}
22-
</a>
18+
<a href="/github/site-policy/github-privacy-statement">{t`privacy`} </a>
2319
</li>
2420
<li className="ml-3">
25-
<a href="https://github.com/security">
26-
{t`product.links.security`}
27-
</a>
21+
<a href="https://github.com/security">{t`product.links.security`}</a>
2822
</li>
2923
<li className="ml-3">
30-
<a href="https://www.githubstatus.com/">
31-
{t`support.links.status`}
32-
</a>
24+
<a href="https://www.githubstatus.com/">{t`support.links.status`}</a>
3325
</li>
3426
<li className="ml-3">
3527
<a href="/">{t`support.links.help`}</a>
3628
</li>
3729
<li className="ml-3">
38-
<a href="https://support.github.com">
39-
{t`support.links.contact_github`}
40-
</a>
30+
<a href="https://support.github.com">{t`support.links.contact_github`}</a>
4131
</li>
4232
<li className="ml-3">
43-
<a href="https://github.com/pricing">
44-
{t`product.links.pricing`}
45-
</a>
33+
<a href="https://github.com/pricing">{t`product.links.pricing`}</a>
4634
</li>
4735
<li className="ml-3">
4836
<a href="/developers">{t`platform.links.developer_api`}</a>
4937
</li>
5038
<li className="ml-3">
51-
<a href="https://services.github.com/">
52-
{t`support.links.training`}
53-
</a>
39+
<a href="https://services.github.com/">{t`support.links.training`}</a>
5440
</li>
5541
<li className="ml-3">
5642
<a href="https://github.com/about">{t`company.links.about`}</a>
5743
</li>
5844
</ul>
5945
</div>
6046
</footer>
61-
);
62-
};
47+
)
48+
}

components/hooks/useVersion.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { useRouter } from 'next/router'
22

33
type VersionInfo = {
4-
currentVersion: string;
5-
isEnterprise: boolean;
6-
};
4+
currentVersion: string
5+
isEnterprise: boolean
6+
}
77
const DEFAULT_VERSION = 'free-pro-team@latest'
88
export const useVersion = (): VersionInfo => {
99
const router = useRouter()
1010
const currentVersion = (router.query.versionId as string) || DEFAULT_VERSION
11-
return { currentVersion, isEnterprise: currentVersion.includes('enterprise') };
12-
};
11+
return { currentVersion, isEnterprise: currentVersion.includes('enterprise') }
12+
}

0 commit comments

Comments
 (0)