mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 15:11:30 -05:00
f6213de83b
[web] Migrate the footer to React GitOrigin-RevId: 9571d7b3ef9a267fb8250956f821b1ee34ce07c7
16 lines
638 B
TypeScript
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)
|
|
}
|