1- "use client"
1+ "use client" ;
22
3- import React from 'react'
4- import { Dialog , DialogTitle , DialogContent , DialogTrigger , DialogHeader } from '../ui/dialog'
5- import { TaskRecurrenceOptions } from './task-recurrence-options'
6- import { BLACK_BACKGROUND } from '@/lib/colors'
7- import { cn } from '@/lib/utils'
8- import { useTranslations } from 'next-intl'
3+ import {
4+ Dialog ,
5+ DialogContent ,
6+ DialogHeader ,
7+ DialogTitle ,
8+ DialogTrigger ,
9+ } from "../ui/dialog" ;
910
10- const TaskRecurrence = ( { isOpen, setIsOpen, } ) => {
11- const t = useTranslations ( "taskRecurrence" )
11+ import { BLACK_BACKGROUND } from "@/lib/colors" ;
12+ import React from "react" ;
13+ import { TaskRecurrenceOptions } from "./task-recurrence-options" ;
14+ import { cn } from "@/lib/utils" ;
15+ import { useTranslations } from "next-intl" ;
1216
13- return (
14- < Dialog open = { isOpen } onOpenChange = { ( open ) => setIsOpen ( open ) } >
15-
16- < DialogContent className = {
17- cn ( "bg-white dark:bg-gradient-to-br rounded-2xl p-6 max-w-xl shadow-xl space-y-4 max-h-[90vh] overflow-y-auto " , BLACK_BACKGROUND )
18- } >
19- < DialogHeader className = 'text-left' >
20- < DialogTitle className = "text-2xl font-semibold text-green-600 dark:text-white mb-2" > { t ( "title" ) } </ DialogTitle >
21- < p className = "text-gray-700 dark:text-gray-300" > { t ( "subtitle" ) } </ p >
22- </ DialogHeader >
23-
24- < TaskRecurrenceOptions
25- setIsOpen = { setIsOpen }
26- />
17+ const TaskRecurrence = ( { isOpen, setIsOpen } ) => {
18+ const t = useTranslations ( "taskRecurrence" ) ;
2719
28- </ DialogContent >
20+ return (
21+ < Dialog open = { isOpen } onOpenChange = { ( open ) => setIsOpen ( open ) } >
22+ < DialogContent
23+ className = { cn (
24+ "p-6 w-[90%] max-w-md rounded-md dark:border-slate-700 dark:bg-slate-900 dark:text-white focus:border-gray-300 focus:ring focus:ring-gray-200 focus:ring-opacity-50 bg-white dark:bg-gradient-to-br shadow-xl space-y-4 max-h-[90vh] overflow-y-auto " ,
25+ BLACK_BACKGROUND
26+ ) }
27+ >
28+ < DialogHeader className = 'text-left' >
29+ < DialogTitle className = 'text-2xl font-semibold text-green-600 dark:text-white mb-2' >
30+ { t ( "title" ) }
31+ </ DialogTitle >
32+ < p className = 'text-gray-700 dark:text-gray-300' > { t ( "subtitle" ) } </ p >
33+ </ DialogHeader >
2934
30- </ Dialog >
31- )
32- }
35+ < TaskRecurrenceOptions setIsOpen = { setIsOpen } />
36+ </ DialogContent >
37+ </ Dialog >
38+ ) ;
39+ } ;
3340
34- export default TaskRecurrence
41+ export default TaskRecurrence ;
0 commit comments