delete mission
This commit is contained in:
@@ -2,6 +2,7 @@ import { FC } from 'react';
|
||||
import { Modal } from './Modal';
|
||||
import { PrimaryButton } from '../../components/button/PrimaryButton';
|
||||
import { SecondaryButton } from '../../components/button/SecondaryButton';
|
||||
import { cn } from '../../lib/cn';
|
||||
|
||||
interface ConfirmModalProps {
|
||||
active: boolean;
|
||||
@@ -11,6 +12,7 @@ interface ConfirmModalProps {
|
||||
message?: string;
|
||||
confirmColor?: 'primary' | 'secondary' | 'error' | 'warning' | 'success';
|
||||
confirmText?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const ConfirmModal: FC<ConfirmModalProps> = ({
|
||||
@@ -21,10 +23,14 @@ const ConfirmModal: FC<ConfirmModalProps> = ({
|
||||
message,
|
||||
confirmColor = 'secondary',
|
||||
confirmText = 'Ок',
|
||||
className,
|
||||
}) => {
|
||||
return (
|
||||
<Modal
|
||||
className="bg-liquid-background border-liquid-lighter border-[2px] p-[25px] rounded-[20px] text-liquid-white fixed top-0 left-0"
|
||||
className={cn(
|
||||
'bg-liquid-background border-liquid-lighter border-[2px] p-[25px] rounded-[20px] text-liquid-white',
|
||||
className,
|
||||
)}
|
||||
onOpenChange={setActive}
|
||||
open={active}
|
||||
backdrop="blur"
|
||||
|
||||
Reference in New Issue
Block a user