mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-24 21:12:38 -04:00
f78e619d87
[web ] Bootstrap 5 - rename the wrapper components and restructure GitOrigin-RevId: 7a76903df81cd546e9e469f24c4f203ea6a61672
21 lines
661 B
TypeScript
21 lines
661 B
TypeScript
import { Card, CardBody } from 'react-bootstrap-5'
|
|
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
|
|
import { FC } from 'react'
|
|
|
|
// This wraps the Bootstrap 5 Card component but is restricted to the very
|
|
// basic way we're using it, which is as a container for page content. The
|
|
// Bootstrap 3 equivalent in our codebase is a div with class "card"
|
|
const OLCard: FC = ({ children }) => {
|
|
return (
|
|
<BootstrapVersionSwitcher
|
|
bs3={<div className="card">{children}</div>}
|
|
bs5={
|
|
<Card>
|
|
<CardBody>{children}</CardBody>
|
|
</Card>
|
|
}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export default OLCard
|