fix VectorCustomServerDialog props

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/10480/head
Michael Telatynski 2019-08-06 18:30:08 +01:00
parent da9f1d1fa3
commit 6d7c4c4dd4
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import { _t } from 'matrix-react-sdk/lib/languageHandler';
* This is identical to `CustomServerDialog` except for replacing "this app"
* with "Riot".
*/
module.exports = () => {
module.exports = ({onFinished}) => {
return (
<div className="mx_ErrorDialog">
<div className="mx_Dialog_title">
@ -42,7 +42,7 @@ module.exports = () => {
)}</p>
</div>
<div className="mx_Dialog_buttons">
<button onClick={this.props.onFinished} autoFocus={true}>
<button onClick={onFinished} autoFocus={true}>
{ _t('Dismiss') }
</button>
</div>