1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Improve more typing

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-07-20 12:30:41 +02:00
parent 1fc5138cfe
commit 3cb7a6ab78
4 changed files with 5 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ export default class AddressPickerDialog extends React.Component<IProps, IState>
private queryChangedDebouncer: NodeJS.Timeout;
private cancelThreepidLookup: () => void;
static defaultProps = {
static defaultProps: Partial<IProps> = {
value: "",
focus: true,
validAddressTypes: addressTypes,

View File

@@ -38,7 +38,7 @@ interface IState {
@replaceableComponent("views.elements.ActionButton")
export default class ActionButton extends React.Component<IProps, IState> {
static defaultProps = {
static defaultProps: Partial<IProps> = {
size: "25",
tooltip: false,
};

View File

@@ -33,7 +33,7 @@ interface IProps {
@replaceableComponent("views.elements.AddressTile")
export default class AddressTile extends React.Component<IProps> {
static defaultProps = {
static defaultProps: Partial<IProps> = {
canDismiss: false,
onDismissed: function() {}, // NOP
justified: false,