|
@@ -0,0 +1,82 @@
|
|
|
|
+import MobileSalesRankingScrollList from "@src/components/mobile/SalesRankingScrollList";
|
|
|
|
+import PCSalesRankingScrollList from "@src/components/pc/SalesRankingScrollList";
|
|
|
|
+import { ISalesRanking } from "metarare";
|
|
|
|
+import * as React from "react";
|
|
|
|
+
|
|
|
|
+export interface ISalesRankingScrollListProps {}
|
|
|
|
+
|
|
|
|
+export default function SalesRankingScrollList(props: ISalesRankingScrollListProps) {
|
|
|
|
+ return (
|
|
|
|
+ <>
|
|
|
|
+ <div className={"mo_wrapper"}>
|
|
|
|
+ <MobileSalesRankingScrollList list={dataFake} />
|
|
|
|
+ </div>
|
|
|
|
+ <div className={"pc_wrapper"}>
|
|
|
|
+ <PCSalesRankingScrollList list={dataFake} />
|
|
|
|
+ </div>
|
|
|
|
+ </>
|
|
|
|
+ );
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+const dataFake: ISalesRanking[] = [
|
|
|
|
+ {
|
|
|
|
+ id: 1,
|
|
|
|
+ name: "John Doe",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 100000,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 2,
|
|
|
|
+ name: "Kasper Henderson",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 90000,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 3,
|
|
|
|
+ name: "Cooper Lynn",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 80000,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 4,
|
|
|
|
+ name: "Iris Stein",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 70000,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 5,
|
|
|
|
+ name: "Leland Richards",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 60000,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 6,
|
|
|
|
+ name: "Octavia Norris",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 50000,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 7,
|
|
|
|
+ name: "Leland Richards",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 40000,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 8,
|
|
|
|
+ name: "Octavia Norris",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 30000,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 9,
|
|
|
|
+ name: "Leland Richards",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 20000,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ id: 10,
|
|
|
|
+ name: "Octavia Norris",
|
|
|
|
+ thumbnail_image: "https://picsum.photos/300/300",
|
|
|
|
+ total_revenue: 10000,
|
|
|
|
+ },
|
|
|
|
+];
|