Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions frontend/web/components/PageTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { FC, PropsWithChildren, ReactNode } from 'react'
import classNames from 'classnames'

type PageTitleType = PropsWithChildren<{
title: ReactNode
Expand All @@ -10,8 +9,8 @@ type PageTitleType = PropsWithChildren<{
const PageTitle: FC<PageTitleType> = ({ children, className, cta, title }) => {
return (
<div className={className || 'mb-4'}>
<div className='flex-row flex-column flex-lg-row gap-2 align-items-start align-items-lg-center'>
<Flex>
<div className='flex-row flex-lg-row gap-2 align-items-start align-items-lg-center justify-content-between'>
<div className='flex'>
<h4 className={children ? 'mb-1' : 'mb-0'}>{title}</h4>
{children && (
<Row>
Expand All @@ -20,7 +19,7 @@ const PageTitle: FC<PageTitleType> = ({ children, className, cta, title }) => {
</div>
</Row>
)}
</Flex>
</div>
{!!cta && <div className='float-right ms-lg-2'>{cta}</div>}
</div>
<hr className='mb-0 mt-3' />
Expand Down
Loading