feat: follow button in the list (#388)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import clsx from "clsx"
|
||||
import React from "react"
|
||||
|
||||
import { Dialog } from "@headlessui/react"
|
||||
@@ -11,12 +12,13 @@ export const Modal: React.FC<{
|
||||
title?: string | React.ReactNode
|
||||
titleIcon?: React.ReactNode
|
||||
size?: "md" | "lg" | "sm"
|
||||
}> = ({ open, setOpen, children, title, titleIcon, size = "md" }) => {
|
||||
zIndex?: number
|
||||
}> = ({ open, setOpen, children, title, titleIcon, size = "md", zIndex }) => {
|
||||
return (
|
||||
<Dialog
|
||||
open={open}
|
||||
onClose={() => setOpen(false)}
|
||||
className="relative z-50"
|
||||
className={clsx("relative", zIndex ? `z-${zIndex}` : "z-50")}
|
||||
>
|
||||
{/* The backdrop, rendered as a fixed sibling to the panel container */}
|
||||
<div className="fixed inset-0 bg-black/30 z-40" aria-hidden={true} />
|
||||
|
||||
Reference in New Issue
Block a user