overleaf/services/web/frontend/js/features/header-footer-react/index.tsx
Rebeka Dekany f6213de83b Merge pull request #20140 from overleaf/rd-footer-react
[web] Migrate the footer to React

GitOrigin-RevId: 9571d7b3ef9a267fb8250956f821b1ee34ce07c7
2024-08-30 08:04:29 +00:00

16 lines
638 B
TypeScript

import ReactDOM from 'react-dom'
import getMeta from '@/utils/meta'
import DefaultNavbar from '@/features/ui/components/bootstrap-5/navbar/default-navbar'
import FatFooter from '@/features/ui/components/bootstrap-5/footer/fat-footer'
const navbarElement = document.getElementById('navbar-container')
if (navbarElement) {
const navbarProps = getMeta('ol-navbar')
ReactDOM.render(<DefaultNavbar {...navbarProps} />, navbarElement)
}
const footerElement = document.getElementById('fat-footer-container')
if (footerElement) {
const footerProps = getMeta('ol-footer')
ReactDOM.render(<FatFooter {...footerProps} />, footerElement)
}