Added back header to ann add and auth pages

Unified card layout
This commit is contained in:
2023-07-29 13:20:29 +03:00
parent 85472233a3
commit 6338e86a33
3 changed files with 169 additions and 154 deletions

View File

@ -0,0 +1,23 @@
import { PropsWithChildren } from 'react'
import { Card } from 'react-bootstrap'
import { BackHeader } from '.'
type CardLayoutProps = {
text: string
}
const CardLayout = ({ text, children }: PropsWithChildren<CardLayoutProps>) => (
<>
<div className='mx-4 px-3'>
<BackHeader text={text} />
</div>
<Card className='m-4 mt-0'>
<Card.Body>
{children}
</Card.Body>
</Card>
</>
)
export default CardLayout