ASC.Web.Client: Settings: Layout: removed unused code
This commit is contained in:
parent
bdbdde44ff
commit
a1aa6f8b80
@ -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 >
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user