Basic call link join support

This commit is contained in:
ayumi-signal 2024-02-22 13:19:50 -08:00 committed by GitHub
parent 2bfb6e7481
commit 96b3413feb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 2438 additions and 509 deletions

View file

@ -10,12 +10,14 @@ import { ErrorModal } from './ErrorModal';
import { setupI18n } from '../util/setupI18n';
import enMessages from '../../_locales/en/messages.json';
import { ButtonVariant } from './Button';
const i18n = setupI18n('en', enMessages);
const createProps = (overrideProps: Partial<PropsType> = {}): PropsType => ({
title: overrideProps.title ?? '',
buttonVariant: overrideProps.buttonVariant ?? undefined,
description: overrideProps.description ?? '',
title: overrideProps.title ?? '',
i18n,
onClose: action('onClick'),
});
@ -30,6 +32,12 @@ export function Normal(): JSX.Element {
return <ErrorModal {...createProps()} />;
}
export function PrimaryButton(): JSX.Element {
return (
<ErrorModal {...createProps({ buttonVariant: ButtonVariant.Primary })} />
);
}
export function CustomStrings(): JSX.Element {
return (
<ErrorModal