mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-07 09:23:38 +00:00
1f57adc4da
Previously each route rendered its whole layout from a to z. Now each route updates a single common wrapper when the layout changes between pages. Also the Loading, Error, UserFetched, QueryAware code is more explicit and understandable. This introduces valtio as dependency, allowing us to deal with global state easily in a svelte/vue way (reactive mutable state). This limits the boilerplaty-ness of immutable state lib approaches, while keeping rendering optimization better than homemade react contexts.
15 lines
332 B
TypeScript
15 lines
332 B
TypeScript
import { Link } from '@/primitives'
|
|
import { AProps } from '@/primitives/A'
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
export const BackToHome = ({ size }: { size?: AProps['size'] }) => {
|
|
const { t } = useTranslation()
|
|
return (
|
|
<p>
|
|
<Link to="/" size={size}>
|
|
{t('backToHome')}
|
|
</Link>
|
|
</p>
|
|
)
|
|
}
|