feat(web): tailwind css (#1147)
This commit is contained in:
@@ -1,17 +1,23 @@
|
||||
import { FunctionComponent } from 'react'
|
||||
import { FunctionComponent, ReactNode } from 'react'
|
||||
import { AlertDialogLabel } from '@reach/alert-dialog'
|
||||
|
||||
type Props = {
|
||||
closeDialog: () => void
|
||||
className?: string
|
||||
headerButtons?: ReactNode
|
||||
}
|
||||
|
||||
const ModalDialogLabel: FunctionComponent<Props> = ({ children, closeDialog, className }) => (
|
||||
<AlertDialogLabel className={`sk-panel-header px-4.5 ${className}`}>
|
||||
const ModalDialogLabel: FunctionComponent<Props> = ({ children, closeDialog, className, headerButtons }) => (
|
||||
<AlertDialogLabel
|
||||
className={`flex-shrink-0 flex justify-between items-center px-4.5 py-3 border-b border-solid border-border bg-contrast text-text ${className}`}
|
||||
>
|
||||
<div className="w-full flex flex-row justify-between items-center">
|
||||
<div className="flex-grow color-text text-base font-medium">{children}</div>
|
||||
<div tabIndex={0} className="font-bold color-info cursor-pointer" onClick={closeDialog}>
|
||||
Close
|
||||
<div className="flex-grow text-text text-base font-medium">{children}</div>
|
||||
<div className="flex items-center gap-2">
|
||||
{headerButtons}
|
||||
<div tabIndex={0} className="font-bold text-info cursor-pointer" onClick={closeDialog}>
|
||||
Close
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr className="h-1px bg-border no-border m-0" />
|
||||
|
||||
Reference in New Issue
Block a user