File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
frontend/src/app/(auth)/leetcode-dashboard Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import Container from "@/components/ui/Container";
5
5
import { PlusIcon } from "lucide-react" ;
6
6
import { Dialog , DialogTrigger } from "@/components/ui/dialog" ;
7
7
import AddQuestionDialog from "@/app/(auth)/leetcode-dashboard/AddQuestionDialog" ;
8
- import { Button } from "@/components/ui/button" ;
9
- import { useState } from "react" ;
10
8
11
9
const LeetcodeDashboardHeader = ( ) => {
12
10
return (
@@ -29,15 +27,14 @@ const LeetcodeDashboard = () => {
29
27
< LeetcodeDashboardHeader />
30
28
< div className = "flex justify-end mb-4" >
31
29
< Dialog >
32
- < DialogTrigger >
33
- < Button >
34
- < PlusIcon /> Add A Question
35
- </ Button >
30
+ { /* Unable to reuse Button as cannot render Button inside DialogTrigger (causes hydration error) */ }
31
+ < DialogTrigger className = "bg-yellow-500 text-primary-foreground hover:bg-yellow-300 rounded flex text-primary-900 p-3" >
32
+ < PlusIcon /> Add A Question
36
33
</ DialogTrigger >
37
34
< AddQuestionDialog />
38
35
</ Dialog >
39
36
</ div >
40
- < LeetcodeDashboardTable />
37
+ { /* <LeetcodeDashboardTable /> */ }
41
38
</ Container >
42
39
) ;
43
40
} ;
You can’t perform that action at this time.
0 commit comments