@@ -32,6 +32,7 @@ import { useParams, useRouter } from "next/navigation";
32
32
import useModal from "@/hooks/useModal" ;
33
33
import { ChannelType } from "@prisma/client" ;
34
34
import qs from "query-string" ;
35
+ import Image from "next/image" ;
35
36
36
37
const formSchema = z . object ( {
37
38
name : z
@@ -91,10 +92,17 @@ const CreateChannel = () => {
91
92
92
93
return (
93
94
< Dialog open = { isModalOpen } onOpenChange = { handleClose } >
94
- < DialogContent className = "bg-white text-black p-0 overflow-hidden" >
95
+ < DialogContent className = "bg-white dark:bg-[#1e1f22] text-black dark:text-white p-0 overflow-hidden" >
95
96
< DialogHeader className = "pt-8 px-6" >
96
- < DialogTitle className = "text-2xl text-center font-bold" >
97
- Create Channel
97
+ < DialogTitle className = "text-2xl text-left font-bold" >
98
+ < Image
99
+ src = "/logo.png"
100
+ alt = "logo"
101
+ width = { 55 }
102
+ height = { 55 }
103
+ className = "object-cover mb-5"
104
+ />
105
+ Create New Channel
98
106
</ DialogTitle >
99
107
</ DialogHeader >
100
108
< Form { ...form } >
@@ -105,13 +113,13 @@ const CreateChannel = () => {
105
113
name = "name"
106
114
render = { ( { field } ) => (
107
115
< FormItem >
108
- < FormLabel className = "uppercase text-xs font-bold text-zinc-500 dark:text-secondary/70 " >
116
+ < FormLabel className = "uppercase text-xs font-bold text-zinc-800 dark:text-zinc-400 " >
109
117
Channel Name
110
118
</ FormLabel >
111
119
< FormControl >
112
120
< Input
113
121
disabled = { isLoading }
114
- className = "bg-zinc-300/50 border-0 focus-visible:ring-0 text-black focus-visible:ring-offset-0"
122
+ className = "bg-zinc-300/50 dark:bg-zinc-900 border-0 focus-visible:ring-0 text-black dark:text-white focus-visible:ring-offset-0"
115
123
placeholder = "Enter Channel name"
116
124
{ ...field }
117
125
/>
@@ -125,14 +133,16 @@ const CreateChannel = () => {
125
133
name = "type"
126
134
render = { ( { field } ) => (
127
135
< FormItem >
128
- < FormLabel > Channel Type</ FormLabel >
136
+ < FormLabel className = "uppercase text-xs font-bold text-zinc-800 dark:text-zinc-400" >
137
+ Channel Type
138
+ </ FormLabel >
129
139
< Select
130
140
disabled = { isLoading }
131
141
onValueChange = { field . onChange }
132
142
defaultValue = { field . value }
133
143
>
134
144
< FormControl >
135
- < SelectTrigger className = "bg-zinc-300/50 border-0 focus:ring-0 text-black ring-offset-0 capitalize focus:ring-offset-0 outline-none" >
145
+ < SelectTrigger className = "bg-zinc-300/50 dark:bg-zinc-900 border-0 focus:ring-0 text-black dark:text-white ring-offset-0 capitalize focus:ring-offset-0 outline-none" >
136
146
< SelectValue placeholder = "Select a channel type" />
137
147
</ SelectTrigger >
138
148
</ FormControl >
@@ -151,7 +161,7 @@ const CreateChannel = () => {
151
161
) }
152
162
/>
153
163
</ div >
154
- < DialogFooter className = "bg-gray-100 px-6 py-4" >
164
+ < DialogFooter className = "bg-gray-100 dark:bg-[#383338] px-6 py-4" >
155
165
< Button disabled = { isLoading } variant = "primary" >
156
166
Create
157
167
</ Button >
0 commit comments