fix VectorCustomServerDialog props

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2019-08-06 18:30:08 +01:00
parent da9f1d1fa3
commit 6d7c4c4dd4

View file

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