fix(ObjectPreview): isMobile undefined

This commit is contained in:
Aminejv 2022-01-03 13:00:00 +01:00
parent 5d6a1af12b
commit 9c1af09bf3
4 changed files with 6 additions and 3 deletions

View File

@ -145,7 +145,7 @@ export default function Filter({
if (disabled) {
return showSearchResult ? (
<Search.Content viewer={viewer} page={page} onAction={onAction} />
<Search.Content viewer={viewer} page={page} onAction={onAction} isMobile={isMobile} />
) : (
children
);
@ -208,7 +208,7 @@ export default function Filter({
/>
<div style={{ flexGrow: 1 }}>
{showSearchResult ? (
<Search.Content viewer={viewer} page={page} onAction={onAction} />
<Search.Content viewer={viewer} page={page} onAction={onAction} isMobile={isMobile} />
) : (
children
)}

View File

@ -176,7 +176,7 @@ function Dismiss({ css, ...props }) {
* Content
* -----------------------------------------------------------------------------------------------*/
function Content({ onAction, viewer, page }) {
function Content({ onAction, viewer, page, isMobile }) {
const { results } = useSearchStore();
const { files, slates } = results;
@ -199,6 +199,7 @@ function Content({ onAction, viewer, page }) {
items={files}
onAction={onAction}
viewer={viewer}
isMobile={isMobile}
page={page}
view="grid"
/>

View File

@ -69,6 +69,7 @@ export default function SceneFilesFolder({ viewer, page, onAction, isMobile }) {
isOwner={true}
items={objects}
onAction={onAction}
isMobile={isMobile}
viewer={viewer}
page={page}
view="grid"

View File

@ -482,6 +482,7 @@ class SlatePage extends React.Component {
view={"grid"}
isOwner={isOwner}
page={this.props.page}
isMobile={this.props.isMobile}
/>
</div>
</>