Include sender in group update notifications

This commit is contained in:
Scott Nonnenberg 2020-03-26 14:47:35 -07:00
parent d88c21e5b6
commit 71436d18e2
28 changed files with 1016 additions and 472 deletions

View file

@ -2,13 +2,13 @@ import React from 'react';
import { LocalizerType, RenderTextCallbackType } from '../types/Util';
type FullJSX = Array<JSX.Element | string> | JSX.Element | string;
export type FullJSXType = Array<JSX.Element | string> | JSX.Element | string;
interface Props {
/** The translation string id */
id: string;
i18n: LocalizerType;
components?: Array<FullJSX>;
components?: Array<FullJSXType>;
renderText?: RenderTextCallbackType;
}
@ -19,7 +19,7 @@ export class Intl extends React.Component<Props> {
),
};
public getComponent(index: number, key: number): FullJSX | undefined {
public getComponent(index: number, key: number): FullJSXType | undefined {
const { id, components } = this.props;
if (!components || !components.length || components.length <= index) {