feat: add booking details sheet for /bookings (#24795)
* spike: initial booking detail sheet * rename button * revert some changes * remove unnecessary test * disable booking details sheet --------- Co-authored-by: Eunjae Lee <[email protected]> Co-authored-by: Udit Takkar <[email protected]>
This commit is contained in:
14 files changed
+967
-61
No files matched your search
@@ -91,16 +91,18 @@ SheetContent.displayName = "SheetContent";
|
||||
|
||||
const SheetHeader = React.forwardRef<
|
||||
HTMLDivElement,
|
||||
React.ComponentPropsWithoutRef<"div"> & { showCloseButton?: boolean }
|
||||
>(({ children, className, showCloseButton = true, ...props }, ref) => {
|
||||
React.ComponentPropsWithoutRef<"div"> & { showCloseButton?: boolean; rightContent?: React.ReactNode }
|
||||
>(({ children, className, showCloseButton = true, rightContent, ...props }, ref) => {
|
||||
return (
|
||||
<div ref={ref} className="flex items-start justify-between gap-x-4 pb-2" {...props}>
|
||||
<div className={classNames("mt-1 flex flex-col gap-y-1", className)}>{children}</div>
|
||||
{showCloseButton && (
|
||||
<SheetPrimitives.Close asChild>
|
||||
<Button variant="icon" StartIcon="x" color="minimal" className="aspect-square p-1" />
|
||||
</SheetPrimitives.Close>
|
||||
)}
|
||||
{rightContent !== undefined
|
||||
? rightContent
|
||||
: showCloseButton && (
|
||||
<SheetPrimitives.Close asChild>
|
||||
<Button variant="icon" StartIcon="x" color="minimal" className="aspect-square p-1" />
|
||||
</SheetPrimitives.Close>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user