+ );
+}
diff --git a/src/views/List/List.js b/src/views/List/List.js
index d3819ec..1e9d9c3 100644
--- a/src/views/List/List.js
+++ b/src/views/List/List.js
@@ -3,18 +3,24 @@ import FormControlLabel from "@material-ui/core/FormControlLabel";
import { withStyles } from "@material-ui/core/styles";
import Switch from "@material-ui/core/Switch";
import ChevronLeftIcon from "@material-ui/icons/ChevronLeft";
+import Search from "./Search/Search";
+import RowItem from "./RowItem/RowItem";
+import BoxItem from "./BoxItem/BoxItem";
+
+import pic from "../../assets/images/pic.png";
import "./List.scss";
export default class List extends Component {
constructor(props) {
super(props);
this.state = {
- chec: true,
+ checkedB: false,
+ parentList: [null],
listData: [
{
id: 0,
pid: null,
- image: null,
+ image: pic,
title: "سامسونگ",
subTitle: "گوشیهای برند سامسونگ",
text: "لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با استفاده از طراحان گرافیک است، چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان که لازم است، و برای شرایط فعلی تکنولوژی مورد نیاز، و کاربردهای متنوع با هدف بهبود ابزارهای کاربردی می باشد، کتابهای زیادی در شصت و سه درصد گذشته حال و آینده، شناخت فراوان جامعه و متخصصان را می طلبد، تا با نرم افزارها شناخت بیشتری را برای طراحان رایانه ای علی الخصوص طراحان خلاقی، و فرهنگ پیشرو در زبان فارسی ایجاد کرد، در این صورت می توان امید داشت که تمام و دشواری موجود در ارائه راهکارها، و شرایط سخت تایپ به پایان رسد و زمان مورد نیاز شامل حروفچینی دستاوردهای اصلی، و جوابگوی سوالات پیوسته اهل دنیای موجود طراحی اساسا مورد استفاده قرار گیرد.",
@@ -103,15 +109,35 @@ export default class List extends Component {
this.setState({ [event.target.name]: event.target.checked });
};
+ setParentList = (id) => {
+ this.setState({
+ parentList: [...this.state.parentList, id],
+ });
+ };
+
+ popParentList = () => {
+ if (this.state.parentList.length === 1) {
+ window.location = "/";
+ } else {
+ let array = this.state.parentList;
+ array.pop();
+ this.setState({
+ parentList: array,
+ });
+ }
+ };
+
render() {
+ const { checkedB, listData, parentList } = this.state;
+
return (