Web:People: disable catalog main button in section for desktop view
This commit is contained in:
parent
6b0f6b0ca4
commit
92ed07db23
@ -7,6 +7,11 @@ import PeopleRowContainer from "./RowView/PeopleRowContainer";
|
||||
import TableView from "./TableView/TableContainer";
|
||||
import { Consumer } from "@appserver/components/utils/context";
|
||||
import { CatalogMainButtonContent } from "../../../../components/Catalog";
|
||||
import { isMobile } from "react-device-detect";
|
||||
import {
|
||||
isMobile as isMobileUtils,
|
||||
isTablet as isTabletUtils,
|
||||
} from "@appserver/components/utils/device";
|
||||
|
||||
class SectionBodyContent extends React.Component {
|
||||
render() {
|
||||
@ -18,7 +23,9 @@ class SectionBodyContent extends React.Component {
|
||||
viewAs === "table" ? (
|
||||
<>
|
||||
<TableView sectionWidth={context.sectionWidth} tReady={tReady} />
|
||||
<CatalogMainButtonContent sectionWidth={context.sectionWidth} />
|
||||
{(isMobile || isMobileUtils() || isTabletUtils()) && (
|
||||
<CatalogMainButtonContent sectionWidth={context.sectionWidth} />
|
||||
)}
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
@ -26,7 +33,9 @@ class SectionBodyContent extends React.Component {
|
||||
sectionWidth={context.sectionWidth}
|
||||
tReady={tReady}
|
||||
/>
|
||||
<CatalogMainButtonContent sectionWidth={context.sectionWidth} />
|
||||
{(isMobile || isMobileUtils() || isTabletUtils()) && (
|
||||
<CatalogMainButtonContent sectionWidth={context.sectionWidth} />
|
||||
)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user