Skip to content

Commit e4d7cc8

Browse files
committed
fix dialog error
1 parent 54eb7c9 commit e4d7cc8

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

β€Žcomponents/algolia-dialog.tsxβ€Ž

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
"use client";
2-
import { Dialog, DialogTrigger, DialogContent } from "@/components/ui/dialog";
2+
import {
3+
Dialog,
4+
DialogTrigger,
5+
DialogContent,
6+
DialogTitle,
7+
} from "@/components/ui/dialog";
38
import { Button } from "@/components/ui/button";
49
import AlgoliaSearch from "@/components/algolia-search";
510
import { FaMagnifyingGlass } from "react-icons/fa6";
@@ -29,6 +34,9 @@ export default function AlgoliaDialog() {
2934
</Button>
3035
</DialogTrigger>
3136
<DialogContent className="sm:max-w-screen-lg p-0 sm:px-6 ">
37+
<div className="hidden">
38+
<DialogTitle>Search</DialogTitle>
39+
</div>
3240
<AlgoliaSearch showFacets={false} setOpen={setOpen} />
3341
</DialogContent>
3442
</Dialog>

β€Žcomponents/user-buy.tsxβ€Ž

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,14 @@ export default function Buy({
107107
</>
108108
);
109109

110-
const hooray = <>You bought this course or are a Pro πŸŽ‰</>;
110+
const hooray = (
111+
<>
112+
<DialogHeader>
113+
<DialogTitle>Pro</DialogTitle>
114+
</DialogHeader>
115+
You bought this course or are a Pro already πŸŽ‰
116+
</>
117+
);
111118

112119
return (
113120
<>

β€Žcomponents/user-go-pro.tsxβ€Ž

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,14 @@ export default function GoPro({
141141
</>
142142
);
143143

144-
const hooray = <>You are a Pro πŸŽ‰</>;
144+
const hooray = (
145+
<>
146+
<DialogHeader>
147+
<DialogTitle>Pro</DialogTitle>
148+
</DialogHeader>
149+
You are a Pro already πŸŽ‰
150+
</>
151+
);
145152

146153
return (
147154
<Dialog defaultOpen onOpenChange={(open) => setShowGoPro(open)}>

0 commit comments

Comments
Β (0)