fix hydration issue in podcast config modal

This commit is contained in:
thierryverse 2025-10-27 22:31:58 +02:00
parent 839453dc8d
commit ee139a4be8

View file

@ -64,10 +64,16 @@ export function ChatPanelView(props: ChatPanelViewProps) {
</div> </div>
)} )}
{/* Generate/Regenerate button */} <div
<button role="button"
type="button" tabIndex={0}
onClick={handleGeneratePost} onClick={handleGeneratePost}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
handleGeneratePost();
}
}}
className={cn( className={cn(
"w-full space-y-3 rounded-xl p-3 transition-colors", "w-full space-y-3 rounded-xl p-3 transition-colors",
podcastIsStale podcastIsStale
@ -86,7 +92,7 @@ export function ChatPanelView(props: ChatPanelViewProps) {
<p className="text-sm font-medium text-left"> <p className="text-sm font-medium text-left">
{podcastIsStale ? "Regenerate Podcast" : "Generate Podcast"} {podcastIsStale ? "Regenerate Podcast" : "Generate Podcast"}
</p> </p>
</button> </div>
</div> </div>
) : ( ) : (
<button <button