diff --git a/products/ASC.Files/Client/src/pages/Home/Section/Body/index.js b/products/ASC.Files/Client/src/pages/Home/Section/Body/index.js index e6c5134207..21af8bfda9 100644 --- a/products/ASC.Files/Client/src/pages/Home/Section/Body/index.js +++ b/products/ASC.Files/Client/src/pages/Home/Section/Body/index.js @@ -9,6 +9,7 @@ import EmptyContainer from "../../../../components/EmptyContainer"; import withLoader from "../../../../HOCs/withLoader"; import TableView from "./TableView/TableContainer"; import withHotkeys from "../../../../HOCs/withHotkeys"; +import { Consumer } from "@appserver/components/utils/context"; let currentDroppable = null; @@ -185,14 +186,23 @@ const SectionBodyContent = (props) => { //console.log("Files Home SectionBodyContent render", props); - return (!fileActionId && isEmptyFilesList) || null ? ( - - ) : viewAs === "tile" ? ( - - ) : viewAs === "table" ? ( - - ) : ( - + return ( + + {(context) => + (!fileActionId && isEmptyFilesList) || null ? ( + + ) : viewAs === "tile" ? ( + + ) : viewAs === "table" ? ( + + ) : ( + + ) + } + ); };