@@ -196,13 +196,13 @@ function CommunityQuestions() {
196
196
value = { questionTitleText }
197
197
onChange = { ( e ) => setQuestionTitleText ( e . target . value ) }
198
198
placeholder = "Write question title..."
199
- className = "p-2 border dark:bg-dark-tertiary border-gray-300 dark:border-gray-600 dark:text-black rounded w-full"
199
+ className = "p-2 border dark:bg-dark-tertiary dark:text-white border-gray-300 dark:border-gray-600 rounded w-full"
200
200
/>
201
201
< textarea
202
202
value = { questionText }
203
203
onChange = { ( e ) => setQuestionText ( e . target . value ) }
204
204
rows = { 3 }
205
- className = "w-full dark:bg-dark-tertiary p-2 border rounded-md dark:text-black "
205
+ className = "w-full dark:bg-dark-tertiary dark:text-white p-2 border rounded-md "
206
206
placeholder = "Ask a question..."
207
207
/>
208
208
< button
@@ -234,7 +234,7 @@ function CommunityQuestions() {
234
234
>
235
235
< p className = "text-md font-semibold" > { question ?. title } </ p >
236
236
< p className = "text-sm text-secondary dark:text-dark-text-fill" >
237
- Asked by: { question ?. author ?. email }
237
+ Asked by: { question ?. author ?. profile ?. name }
238
238
</ p >
239
239
</ li >
240
240
) ) }
@@ -249,7 +249,7 @@ function CommunityQuestions() {
249
249
</ h2 >
250
250
< span > { selectedQuestion ?. content } </ span >
251
251
< p className = "text-sm text-secondary dark:text-dark-text-fill" >
252
- Asked by { selectedQuestion ?. author ?. email }
252
+ Asked by { selectedQuestion ?. author ?. profile ?. name }
253
253
</ p >
254
254
{ loggedUser && loggedUser === selectedQuestion ?. author ?. id && (
255
255
< button
@@ -285,7 +285,7 @@ function CommunityQuestions() {
285
285
>
286
286
< p > { answer . content } </ p >
287
287
< p className = "text-sm text-secondary dark:text-white" >
288
- Answered by { answer . author . email }
288
+ Answered by { answer . author ?. profile ?. name }
289
289
</ p >
290
290
</ div >
291
291
@@ -307,7 +307,6 @@ function CommunityQuestions() {
307
307
</ p >
308
308
) }
309
309
310
- { /* Answer submission form for the logged-in user */ }
311
310
{ loggedUser && (
312
311
< div className = "mt-4 flex items-start flex-col w-full" >
313
312
< textarea
0 commit comments