mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +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>
|
</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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue