Convert LazyLoadingDisabledDialog to TS

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Š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

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;