Blame view

pages/user/wishlist/index.js 1015 Bytes
1 2 3
import React from "react";
import Layout from "../../../components/layout/Layout";
import MyWhishList from "../../../components/user/MyWhishList";
Chetan committed
4
import { useSelector } from "react-redux";
jaymehta committed
5
import { Skeleton } from "antd";
6

Chetan committed
7
export default function UserProfilePage() {
jaymehta committed
8 9 10 11
  const { wishlists, loading } = useSelector(state => state.wishlists);
  return (
    <Layout>
      {loading ? (
12 13 14 15 16 17 18 19 20 21 22 23 24
        <div className="container">
          <div className="py-5">
            <div className="row">
              {[1, 2, 3].map(() => (
                <div className="col-lg-3 col-md-4 col-sm-12">
                  <div className="d-inline-flex flex-column">
                    <Skeleton.Button active style={{ height: 250, width: 290 }} />
                    <Skeleton.Button active style={{ marginTop: 10, width: 120 }} />
                  </div>
                </div>
              ))}
            </div>
          </div>
jaymehta committed
25 26 27 28 29 30 31
        </div>
      ) : (
        <MyWhishList data={wishlists} />
      )}
    </Layout>
  );
}