feat: follow button in the list (#388)

This commit is contained in:
Suemor
2023-04-20 10:58:56 +01:00
committed by GitHub
parent dab5ad99dc
commit 808ee6a54a
3 changed files with 71 additions and 45 deletions
+4 -2
View File
@@ -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} />