Skip to content

Commit 67a0f41

Browse files
Refactor MeetingModal component and add styling to DialogContent
1 parent db7844d commit 67a0f41

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

components/MeetingModal.tsx

+16-16
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ import React, { ReactNode } from 'react'
22
import Image from 'next/image'
33
import { cn } from '@/lib/utils';
44
import {
5-
Dialog,
6-
DialogContent,
5+
Dialog,
6+
DialogContent,
77
} from "@/components/ui/dialog"
88
import { Button } from './ui/button';
99

1010
interface MeetingModalProps {
11-
isOpen: boolean;
12-
onClose: () => void;
13-
title: string;
14-
className?: string;
15-
children?: ReactNode;
16-
handleClick?: () => void;
17-
buttonText?: string;
18-
image?: string;
19-
buttonIcon?: string;
11+
isOpen: boolean;
12+
onClose: () => void;
13+
title: string;
14+
className?: string;
15+
children?: ReactNode;
16+
handleClick?: () => void;
17+
buttonText?: string;
18+
image?: string;
19+
buttonIcon?: string;
2020
}
2121

2222
const MeetingModal = ({ isOpen, onClose, title, className, children, handleClick, buttonText, image, buttonIcon }: MeetingModalProps) => {
23-
return (
24-
<Dialog open={isOpen} onOpenChange={onClose}>
25-
<DialogContent className="flex w-full max-w-[520px] flex-col gap-6 border-none bg-dark-1 px-6 py-9 text-white">
23+
return (
24+
<Dialog open={isOpen} onOpenChange={onClose}>
25+
<DialogContent className="flex w-full max-w-[520px] flex-col gap-6 border-none bg-dark-1 px-6 py-9 text-white">
2626
<div className="flex flex-col gap-6">
2727
{image && (
2828
<div className="flex justify-center">
@@ -52,8 +52,8 @@ const MeetingModal = ({ isOpen, onClose, title, className, children, handleClick
5252
</Button>
5353
</div>
5454
</DialogContent>
55-
</Dialog>
56-
)
55+
</Dialog>
56+
)
5757
}
5858

5959
export default MeetingModal;

components/ui/toaster.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function Toaster() {
1717
<ToastProvider>
1818
{toasts.map(function ({ id, title, description, action, ...props }) {
1919
return (
20-
<Toast key={id} {...props}>
20+
<Toast className="border-none bg-dark-1 text-white" key={id} {...props}>
2121
<div className="grid gap-1">
2222
{title && <ToastTitle>{title}</ToastTitle>}
2323
{description && (

0 commit comments

Comments
 (0)