chore: better Prettier config for easier reviews
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import Link from 'next/link'
|
||||
import useTranslation from 'next-translate/useTranslation'
|
||||
import Link from "next/link"
|
||||
import useTranslation from "next-translate/useTranslation"
|
||||
|
||||
import { API_VERSION } from '../../tools/api'
|
||||
import { VersionLink } from './VersionLink'
|
||||
import { API_VERSION } from "../../tools/api"
|
||||
import { VersionLink } from "./VersionLink"
|
||||
|
||||
export interface FooterProps {
|
||||
version: string
|
||||
@ -13,19 +13,19 @@ export const Footer: React.FC<FooterProps> = (props) => {
|
||||
const { version } = props
|
||||
|
||||
return (
|
||||
<footer className='flex flex-col items-center justify-center border-t-2 border-gray-600 bg-white py-6 text-lg dark:border-gray-400 dark:bg-black'>
|
||||
<footer className="flex flex-col items-center justify-center border-t-2 border-gray-600 bg-white py-6 text-lg dark:border-gray-400 dark:bg-black">
|
||||
<p>
|
||||
<Link
|
||||
href='/'
|
||||
className='text-green-800 hover:underline dark:text-green-400'
|
||||
href="/"
|
||||
className="text-green-800 hover:underline dark:text-green-400"
|
||||
>
|
||||
Thream
|
||||
</Link>{' '}
|
||||
| {t('common:all-rights-reserved')}
|
||||
</Link>{" "}
|
||||
| {t("common:all-rights-reserved")}
|
||||
</p>
|
||||
<p className='mt-1'>
|
||||
<VersionLink repository='website' version={version} /> |{' '}
|
||||
<VersionLink repository='api' version={API_VERSION} />
|
||||
<p className="mt-1">
|
||||
<VersionLink repository="website" version={version} /> |{" "}
|
||||
<VersionLink repository="api" version={API_VERSION} />
|
||||
</p>
|
||||
</footer>
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
export interface VersionLinkProps {
|
||||
version: string
|
||||
repository: 'website' | 'api'
|
||||
repository: "website" | "api"
|
||||
}
|
||||
|
||||
export const VersionLink: React.FC<VersionLinkProps> = (props) => {
|
||||
@ -9,10 +9,10 @@ export const VersionLink: React.FC<VersionLinkProps> = (props) => {
|
||||
return (
|
||||
<a
|
||||
data-cy={`version-link-${repository}`}
|
||||
className='text-green-800 hover:underline dark:text-green-400'
|
||||
className="text-green-800 hover:underline dark:text-green-400"
|
||||
href={`https://github.com/Thream/${repository}/releases/tag/v${version}`}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
{repository} v{version}
|
||||
</a>
|
||||
|
@ -1 +1 @@
|
||||
export * from './Footer'
|
||||
export * from "./Footer"
|
||||
|
Reference in New Issue
Block a user