fix: new stream adjustments

This commit is contained in:
Alejandro Gomez
2023-06-28 08:54:11 +02:00
parent e9d3a7d05e
commit 9f8c14c568
2 changed files with 15 additions and 3 deletions

View File

@ -178,7 +178,7 @@ interface NewStreamDialogProps {
}
export function NewStreamDialog({
text = "New Stream",
text,
ev,
onFinish,
btnClassName = "btn",
@ -187,8 +187,13 @@ export function NewStreamDialog({
<Dialog.Root>
<Dialog.Trigger asChild>
<button type="button" className={btnClassName}>
<span className="hide-on-mobile">{text}</span>
<Icon name="signal" />
{text && text}
{!text && (
<>
<span className="hide-on-mobile">New Stream</span>
<Icon name="signal" />
</>
)}
</button>
</Dialog.Trigger>
<Dialog.Portal>