mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-26 13:45:30 +03:00
fix(ObjectPreview): isMobile undefined
This commit is contained in:
parent
5d6a1af12b
commit
9c1af09bf3
@ -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
|
||||
)}
|
||||
|
@ -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"
|
||||
/>
|
||||
|
@ -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"
|
||||
|
@ -482,6 +482,7 @@ class SlatePage extends React.Component {
|
||||
view={"grid"}
|
||||
isOwner={isOwner}
|
||||
page={this.props.page}
|
||||
isMobile={this.props.isMobile}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
|
Loading…
Reference in New Issue
Block a user