fix(ts) make tsc (almost) not cry on native

Co-authored-by: Calinteodor <calin.chitu@8x8.com>
Co-authored-by: Robert Pintilii <robert.pin9@gmail.com>
This commit is contained in:
Saúl Ibarra Corretgé
2022-10-28 12:07:58 +02:00
committed by Saúl Ibarra Corretgé
parent 2de0520835
commit 2596c463fe
70 changed files with 536 additions and 488 deletions

View File

@@ -0,0 +1,48 @@
// @flow
import React from 'react';
type Props = {
/**
* The text for the Label.
*/
children: React$Node,
/**
* The CSS class of the label.
*/
className?: string,
/**
* The (round) number prefix for the Label.
*/
number?: string | number,
/**
* The click handler.
*/
onClick?: Function,
};
/**
* Label for the dialogs.
*
* @returns {ReactElement}
*/
function Label({ children, className, number, onClick }: Props) {
const containerClass = className
? `prejoin-dialog-label ${className}`
: 'prejoin-dialog-label';
return (
<div
className = { containerClass }
onClick = { onClick }>
{number && <div className = 'prejoin-dialog-label-num'>{number}</div>}
<span>{children}</span>
</div>
);
}
export default Label;