mirror of
https://github.com/mue/mue.git
synced 2026-07-11 18:31:47 +02:00
fix: collection refresh and item language display
This commit is contained in:
@@ -189,7 +189,7 @@ export default class Item extends PureComponent {
|
||||
</div>
|
||||
</div>
|
||||
) : null}
|
||||
{!this.props.data.data.photos && this.props.data.data.language !== '' ? (
|
||||
{this.props.data.data.quotes && this.props.data.data.language !== '' ? (
|
||||
<div className="infoItem">
|
||||
<MdTranslate />
|
||||
<div className="text">
|
||||
|
||||
@@ -10,7 +10,7 @@ import {
|
||||
export default function Items({
|
||||
type,
|
||||
items,
|
||||
collections = [],
|
||||
collection,
|
||||
toggleFunction,
|
||||
collectionFunction,
|
||||
onCollection,
|
||||
@@ -26,8 +26,6 @@ export default function Items({
|
||||
}
|
||||
};
|
||||
|
||||
const collection = collections[Math.floor(Math.random() * collections.length)];
|
||||
|
||||
return (
|
||||
<>
|
||||
{(type === 'all' && !onCollection) || (type === 'collections' && !onCollection) ? (
|
||||
|
||||
@@ -402,7 +402,7 @@ export default class Marketplace extends PureComponent {
|
||||
<Items
|
||||
type={this.props.type}
|
||||
items={this.state.items}
|
||||
collections={this.state.collections}
|
||||
collection={this.state.collections[Math.floor(Math.random() * this.state.collections.length)] || []}
|
||||
onCollection={this.state.collection}
|
||||
toggleFunction={(input) => this.toggle('item', input)}
|
||||
collectionFunction={(input) => this.toggle('collection', input)}
|
||||
|
||||
Reference in New Issue
Block a user