Convert LazyLoadingDisabledDialog to TS
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
9e74477771
commit
aba966034e
1 changed files with 8 additions and 1 deletions
|
@ -20,7 +20,12 @@ import QuestionDialog from './QuestionDialog';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import SdkConfig from '../../../SdkConfig';
|
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 brand = SdkConfig.get().brand;
|
||||||
const description1 = _t(
|
const description1 = _t(
|
||||||
"You've previously used %(brand)s on %(host)s with lazy loading of members enabled. " +
|
"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}
|
onFinished={props.onFinished}
|
||||||
/>);
|
/>);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export default LazyLoadingDisabledDialog;
|
Loading…
Reference in a new issue