Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Support custom text in notify button

Gabe Kangasa5cd533ce1d2
diff --git a/web/components/action-buttons/NotifyButton.tsx b/web/components/action-buttons/NotifyButton.tsx
index e292cba290..7e9e1b9e8e 100644
--- a/web/components/action-buttons/NotifyButton.tsx
+++ b/web/components/action-buttons/NotifyButton.tsx
@@ -4,11 +4,12 @@ import { FC } from 'react';
import styles from './ActionButton/ActionButton.module.scss';
export type NotifyButtonProps = {
+ text?: string;
onClick?: () => void;
};
-export const NotifyButton: FC<NotifyButtonProps> = ({ onClick }) => (
+export const NotifyButton: FC<NotifyButtonProps> = ({ onClick, text }) => (
<Button type="primary" className={`${styles.button}`} icon={<BellFilled />} onClick={onClick}>
- Notify
+ {text || 'Notify'}
</Button>
);
diff --git a/web/components/ui/OfflineBanner/OfflineBanner.tsx b/web/components/ui/OfflineBanner/OfflineBanner.tsx
index 9363b1b623..9c8f8d7003 100644
--- a/web/components/ui/OfflineBanner/OfflineBanner.tsx
+++ b/web/components/ui/OfflineBanner/OfflineBanner.tsx
@@ -50,7 +50,7 @@ export const OfflineBanner: FC<OfflineBannerProps> = ({
<div className={styles.footer}>
{fediverseAccount && <FollowButton />}
- {notificationsEnabled && <NotifyButton onClick={onNotifyClick} />}
+ {notificationsEnabled && <NotifyButton text="Notify when live" onClick={onNotifyClick} />}
</div>
</div>
</div>