Skip to content

Commit

Permalink
fix: Localize "Screen Share" caption (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
glung authored Oct 26, 2023
1 parent 7da1cae commit 0a9ed96
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export type ScreenShareButtonProps = {
caption?: string;
};

export const ScreenShareButton = ({
caption = 'Screen Share',
}: ScreenShareButtonProps) => {
export const ScreenShareButton = (props: ScreenShareButtonProps) => {
const call = useCall();
const { useHasOngoingScreenShare } = useCallStateHooks();
const isSomeoneScreenSharing = useHasOngoingScreenShare();

const { t } = useI18n();
const { caption = t('Screen Share') } = props;

const { toggleScreenShare, isAwaitingPermission, isScreenSharing } =
useToggleScreenShare();

Expand Down

0 comments on commit 0a9ed96

Please sign in to comment.