Skip to content

Commit df612a6

Browse files
committed
fix: resolve hydration error by replacing nested p with div in alert description
1 parent dfb83fa commit df612a6

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

components/terminal/terminal-toolbar.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,12 +332,13 @@ export function TerminalToolbar({
332332
<AlertDialogContent className="bg-[#252526] border-[#3e3e42] text-white">
333333
<AlertDialogHeader>
334334
<AlertDialogTitle>Run Application & Keep Active?</AlertDialogTitle>
335-
<AlertDialogDescription className="text-gray-400 space-y-3">
336-
<p>
337-
This will build and start your application by running:
338-
<br />
339-
<code className="bg-[#1e1e1e] px-1.5 py-0.5 rounded text-xs border border-[#3e3e42] mt-1 inline-block font-mono text-blue-400">pnpm build && pnpm start</code>
340-
</p>
335+
<AlertDialogDescription className="text-gray-400 space-y-3" asChild>
336+
<div className="text-sm text-gray-400 space-y-3">
337+
<div>
338+
This will build and start your application by running:
339+
<br />
340+
<code className="bg-[#1e1e1e] px-1.5 py-0.5 rounded text-xs border border-[#3e3e42] mt-1 inline-block font-mono text-blue-400">pnpm build && pnpm start</code>
341+
</div>
341342

342343
<div className="bg-[#1e1e1e]/50 rounded-md border border-[#3e3e42]/50 text-sm">
343344
<div className="p-3 space-y-2">
@@ -369,6 +370,7 @@ export function TerminalToolbar({
369370
</div>
370371
)}
371372
</div>
373+
</div>
372374
</AlertDialogDescription>
373375
</AlertDialogHeader>
374376
<AlertDialogFooter>

0 commit comments

Comments
 (0)