mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 01:06:23 +02:00
fix hydration issue in podcast config modal
This commit is contained in:
parent
839453dc8d
commit
ee139a4be8
1 changed files with 10 additions and 4 deletions
|
|
@ -64,10 +64,16 @@ export function ChatPanelView(props: ChatPanelViewProps) {
|
|||
</div>
|
||||
)}
|
||||
|
||||
{/* Generate/Regenerate button */}
|
||||
<button
|
||||
type="button"
|
||||
<div
|
||||
role="button"
|
||||
tabIndex={0}
|
||||
onClick={handleGeneratePost}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter" || e.key === " ") {
|
||||
e.preventDefault();
|
||||
handleGeneratePost();
|
||||
}
|
||||
}}
|
||||
className={cn(
|
||||
"w-full space-y-3 rounded-xl p-3 transition-colors",
|
||||
podcastIsStale
|
||||
|
|
@ -86,7 +92,7 @@ export function ChatPanelView(props: ChatPanelViewProps) {
|
|||
<p className="text-sm font-medium text-left">
|
||||
{podcastIsStale ? "Regenerate Podcast" : "Generate Podcast"}
|
||||
</p>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue