ASC.Web.Client: Settings: Layout: removed unused code

This commit is contained in:
Andrey Savihin 2019-11-28 16:33:56 +03:00
parent bdbdde44ff
commit a1aa6f8b80

View File

@ -1,6 +1,6 @@
import React, { Suspense, useEffect } from "react";
import React, { useEffect } from "react";
import { connect } from 'react-redux';
import { Loader, PageLayout } from "asc-web-components";
import { PageLayout } from "asc-web-components";
import i18n from "../i18n";
import { I18nextProvider } from "react-i18next";
import {
@ -20,18 +20,13 @@ const Layout = ({ currentProductId, setCurrentProductId, language, children }) =
return (
<I18nextProvider i18n={i18n}>
<Suspense
fallback={<Loader className="pageLoader" type="rombs" size={40} />}
>
<PageLayout
withBodyScroll={true}
articleHeaderContent={<ArticleHeaderContent />}
articleBodyContent={<ArticleBodyContent />}
sectionHeaderContent={<SectionHeaderContent />}
sectionBodyContent={children}
/>
</Suspense>
<PageLayout
withBodyScroll={true}
articleHeaderContent={<ArticleHeaderContent />}
articleBodyContent={<ArticleBodyContent />}
sectionHeaderContent={<SectionHeaderContent />}
sectionBodyContent={children}
/>
</I18nextProvider >
);
};