mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-28 14:04:43 -04:00

* Add new format for translation files Co-authored-by: Philip Molares <philip.molares@udo.edu> Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
19 lines
475 B
TypeScript
19 lines
475 B
TypeScript
import React from 'react'
|
|
import { Button } from 'react-bootstrap'
|
|
import { Trans, useTranslation } from 'react-i18next'
|
|
import { LinkContainer } from 'react-router-bootstrap'
|
|
|
|
export const SignInButton: React.FC = () => {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<LinkContainer to="/login" title={t('login.signIn')}>
|
|
<Button
|
|
variant="success"
|
|
size="sm"
|
|
>
|
|
<Trans i18nKey="login.signIn"/>
|
|
</Button>
|
|
</LinkContainer>
|
|
)
|
|
}
|