Convert LazyLoadingDisabledDialog to TS

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-09-05 16:17:44 +02:00
parent 9e74477771
commit aba966034e
No known key found for this signature in database
GPG Key ID: 55C211A1226CB17D
1 changed files with 8 additions and 1 deletions

View File

@ -20,7 +20,12 @@ import QuestionDialog from './QuestionDialog';
import { _t } from '../../../languageHandler';
import SdkConfig from '../../../SdkConfig';
export default (props) => {
interface IProps {
onFinished: () => void;
host: string;
}
const LazyLoadingDisabledDialog: React.FC<IProps> = (props: IProps) => {
const brand = SdkConfig.get().brand;
const description1 = _t(
"You've previously used %(brand)s on %(host)s with lazy loading of members enabled. " +
@ -49,3 +54,5 @@ export default (props) => {
onFinished={props.onFinished}
/>);
};
export default LazyLoadingDisabledDialog;