Skip to content

Commit

Permalink
Add ProductViewOptions component to ProductLayoutWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
MuttakinHasib committed Feb 16, 2024
1 parent 4864369 commit 23f8abf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ILink } from "@/types";
import { usePathname } from "next/navigation";
import React, { PropsWithChildren, useEffect, useState } from "react";
import { ProductsFilter } from "./filter.component";
import { ProductViewOptions } from "./view-options.component";

export const ProductLayoutWrapper = ({ children }: PropsWithChildren) => {
const pathname = usePathname();
Expand All @@ -25,7 +26,10 @@ export const ProductLayoutWrapper = ({ children }: PropsWithChildren) => {
</div>
<div className="pb-16 pt-[calc(4rem-40px)] flex lg:space-x-8 xxl:space-x-12">
<ProductsFilter />
{children}
<div className="space-y-5 flex-1">
<ProductViewOptions />
{children}
</div>
</div>
</div>
);
Expand Down

0 comments on commit 23f8abf

Please sign in to comment.