mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 23:46:00 -05:00
f78e619d87
[web ] Bootstrap 5 - rename the wrapper components and restructure GitOrigin-RevId: 7a76903df81cd546e9e469f24c4f203ea6a61672
16 lines
461 B
TypeScript
16 lines
461 B
TypeScript
import { Row } from 'react-bootstrap-5'
|
|
import { Row as BS3Row } from 'react-bootstrap'
|
|
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
|
|
|
|
type OLRowProps = React.ComponentProps<typeof Row>
|
|
|
|
function OLRow(props: OLRowProps) {
|
|
return (
|
|
<BootstrapVersionSwitcher
|
|
bs3={<BS3Row className={props.className}>{props.children}</BS3Row>}
|
|
bs5={<Row {...props} />}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default OLRow
|