Show notification on screenshare start in adhoc call

This commit is contained in:
Scott Nonnenberg 2024-08-02 10:01:40 -07:00 committed by GitHub
parent 22192a4037
commit 1a4bc49563
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 114 additions and 32 deletions

View file

@ -3,7 +3,11 @@
import React from 'react';
import type { Meta } from '@storybook/react';
import { IdenticonSVGForContact, IdenticonSVGForGroup } from './IdenticonSVG';
import {
IdenticonSVGForCallLink,
IdenticonSVGForContact,
IdenticonSVGForGroup,
} from './IdenticonSVG';
import { AvatarColorMap } from '../types/Colors';
export default {
@ -40,3 +44,18 @@ export function AllColorsForGroup(): JSX.Element {
return <>{stories}</>;
}
export function AllColorsForCallLink(): JSX.Element {
const stories: Array<JSX.Element> = [];
AvatarColorMap.forEach(value =>
stories.push(
<IdenticonSVGForCallLink
backgroundColor={value.bg}
foregroundColor={value.fg}
/>
)
);
return <>{stories}</>;
}