Fix optional props

pull/21833/head
J. Ryan Stinnett 2021-04-26 14:56:43 +01:00
parent 83596c7335
commit 1b615eebc1
1 changed files with 2 additions and 2 deletions

View File

@ -64,10 +64,10 @@ function parseIntWithDefault(val, def) {
} }
interface IBannedUserProps { interface IBannedUserProps {
canUnban: boolean; canUnban?: boolean;
member: RoomMember; member: RoomMember;
by: string; by: string;
reason: string; reason?: string;
} }
export class BannedUser extends React.Component<IBannedUserProps> { export class BannedUser extends React.Component<IBannedUserProps> {