тип ошибки landig.Slots не определен
import Link from "next/link";
import { connect } from "react-redux";
import Slot from "../components/slot";
import LandingLoader from "./landing-loader";
import ListingsContainer from "crust/containers/listings";
class Landing extends React.Component {
state = {
flexHeight: "auto"
};
setHeight(height) {
if (this.default) {
this.default.style = `height:${height}px; overflow:hidden`;
}
}
render() {
let { error, land
ing, slotsLoaded, slotsToLoad, showListings} = this.props;let ready = посадка && slotsLoaded;return ((this.default = ref)} style = {showListings? {height: "auto", переполнение: "auto", overflowX: "hidden"}: {}}> {landing && landing.Slots.map ((слот, index) => {if (slot &&! slot.removed) {let fullWidth = "100%"; let maxWidth = 576;
let style = {};
style["width"] = fullWidth;
style["maxWidth"] = fullWidth;
style["height"] = slot.HeightPixel + "px";
return (
<li key={index} className="slots" style={style}>
<Slot slotItem={slot} slotIndex={index} />
</li>
);
}
})}
</ul>
</main>
</div>
);
}}
экспортировать соединение по умолчанию (штат => штат) (посадка);