Tracking page
This commit is contained in:
@@ -3,7 +3,7 @@ import TrackItemCard from "../Cards/TrackItemCard";
|
||||
import Icons from "../Helpers/Icons";
|
||||
import SliderCom from "../Helpers/SliderCom";
|
||||
|
||||
export default function TrackCategoy({ className, trending }) {
|
||||
export default function TrackCategory({ className, trackcategory }) {
|
||||
const settings = {
|
||||
arrows: false,
|
||||
slidesToShow: 4,
|
||||
@@ -91,9 +91,9 @@ export default function TrackCategoy({ className, trending }) {
|
||||
{/* trending products */}
|
||||
<div className="trending-products relative w-full">
|
||||
<SliderCom selector={trendingSlider} settings={settings}>
|
||||
{trending &&
|
||||
trending.length > 0 &&
|
||||
trending.map((item) => (
|
||||
{trackcategory &&
|
||||
trackcategory.length > 0 &&
|
||||
trackcategory.map((item) => (
|
||||
<TrackItemCard key={item.id} datas={item} />
|
||||
))}
|
||||
</SliderCom>
|
||||
|
||||
@@ -1,20 +1,24 @@
|
||||
import React from "react";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import HistoryAnalyticsCard from "../Cards/HistoryAnalyticsCard";
|
||||
import SellHistoryMarketVisitorAnalytic from "../Home/SellHistoryMarketVisitorAnalytic";
|
||||
import Layout from "../Partials/Layout";
|
||||
import TrackingTable from "./TrackingTable";
|
||||
import MarketHistorySection from "./MarketHistorySection";
|
||||
import TrackCategoy from "./TrackCategory";
|
||||
import TrackCategory from "./TrackCategory";
|
||||
import datas from "../../data/product_data.json";
|
||||
|
||||
export default function Tracking() {
|
||||
export default function Tracking(props) {
|
||||
console.log("IN TRACKING COMPO", props);
|
||||
|
||||
const trending = datas.datas;
|
||||
console.log("IN TRACKING COMPO TRD", trending);
|
||||
//debugger;
|
||||
return (
|
||||
<>
|
||||
<Layout>
|
||||
<div className="history-wrapper w-full mb-10">
|
||||
<div className="main-wrapper w-full">
|
||||
<TrackCategoy trending={trending} className="mb-10" />
|
||||
<TrackCategory trackcategory={props.trackCategory} className="mb-10" />
|
||||
<TrackingTable />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user