diff --git a/app/(site)/components/AuthForm.tsx b/app/(site)/components/AuthForm.tsx
index 74710c4..ea8ef88 100644
--- a/app/(site)/components/AuthForm.tsx
+++ b/app/(site)/components/AuthForm.tsx
@@ -79,6 +79,7 @@ const AuthForm = () => {
@@ -86,6 +87,7 @@ const AuthForm = () => {
{
-
diff --git a/app/components/Button.tsx b/app/components/Button.tsx
index 80530f7..df95fc7 100644
--- a/app/components/Button.tsx
+++ b/app/components/Button.tsx
@@ -1,35 +1,43 @@
+import clsx from "clsx";
+
interface ButtonProps {
type?: "button" | "submit" | "reset" | undefined;
fullWidth?: boolean;
children?: React.ReactNode;
+ onClick?: () => void;
+ secondary?: boolean;
+ danger?: boolean;
}
const Button: React.FC = ({
type = "button",
fullWidth,
- children
+ children,
+ onClick,
+ secondary,
+ danger
}) => {
return (
{children}
diff --git a/app/components/modals/GroupChatModal.tsx b/app/components/modals/GroupChatModal.tsx
index 35695bc..0703a5e 100644
--- a/app/components/modals/GroupChatModal.tsx
+++ b/app/components/modals/GroupChatModal.tsx
@@ -13,6 +13,7 @@ import { User } from '@prisma/client';
import Input from "../inputs/Input";
import Select from '../inputs/Select';
import Modal from './Modal';
+import Button from '../Button';
interface GroupChatModalProps {
isOpen?: boolean;
@@ -96,18 +97,16 @@ const GroupChatModal: React.FC = ({
-
- Cancel
-
-
+ Cancel
+
+
Create
-
+
diff --git a/app/components/sidebar/SettingsModal.tsx b/app/components/sidebar/SettingsModal.tsx
index d19074c..2ea221f 100644
--- a/app/components/sidebar/SettingsModal.tsx
+++ b/app/components/sidebar/SettingsModal.tsx
@@ -9,6 +9,7 @@ import { CldUploadButton } from 'next-cloudinary';
import Input from "../inputs/Input";
import Modal from '../modals/Modal';
+import Button from '../Button';
interface SettingsModalProps {
isOpen?: boolean;
@@ -66,7 +67,6 @@ const SettingsModal: React.FC = ({
-
+
Cancel
-
-
+
+
Save
-
+
diff --git a/app/conversations/[conversationId]/components/ConfirmModal.tsx b/app/conversations/[conversationId]/components/ConfirmModal.tsx
index d86e63c..ebecaea 100644
--- a/app/conversations/[conversationId]/components/ConfirmModal.tsx
+++ b/app/conversations/[conversationId]/components/ConfirmModal.tsx
@@ -6,6 +6,7 @@ import { ExclamationTriangleIcon } from '@heroicons/react/24/outline'
import axios from 'axios';
import { useParams, useRouter } from 'next/navigation';
import Modal from '@/app/components/modals/Modal';
+import Button from '@/app/components/Button';
interface ConfirmModalProps {
isOpen?: boolean;
@@ -76,54 +77,18 @@ const ConfirmModal: React.FC = ({
-
Delete
-
-
+
Cancel
-
+
)