feat: select view buttons
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
.container {
|
||||
@media (min-width: 48em) {
|
||||
max-width: calc(100vw - 450px);
|
||||
max-width: calc(100vw - 210px - var(--mantine-spacing-md));
|
||||
}
|
||||
@media (max-width: 48em) {
|
||||
max-width: 100vw;
|
||||
|
||||
28
src/app/deals/components/shared/PageBody/PageBody.tsx
Normal file
28
src/app/deals/components/shared/PageBody/PageBody.tsx
Normal file
@ -0,0 +1,28 @@
|
||||
"use client";
|
||||
|
||||
import { Space } from "@mantine/core";
|
||||
import MainBlockHeader from "@/app/deals/components/mobile/MainBlockHeader/MainBlockHeader";
|
||||
import Funnel from "@/app/deals/components/shared/Funnel/Funnel";
|
||||
import { DealsContextProvider } from "@/app/deals/contexts/DealsContext";
|
||||
import { useViewContext } from "@/app/deals/contexts/ViewContext";
|
||||
|
||||
const PageBody = () => {
|
||||
const { view } = useViewContext();
|
||||
|
||||
if (view === "board")
|
||||
return (
|
||||
<>
|
||||
<MainBlockHeader />
|
||||
<Space h={"md"} />
|
||||
<DealsContextProvider>
|
||||
<Funnel />
|
||||
</DealsContextProvider>
|
||||
</>
|
||||
);
|
||||
|
||||
if (view === "table") return <>-</>;
|
||||
|
||||
return <>-</>;
|
||||
};
|
||||
|
||||
export default PageBody;
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
.container {
|
||||
height: calc(100vh - 150px);
|
||||
height: calc(100vh - 210px);
|
||||
@media (max-width: 48em) {
|
||||
width: 80vw;
|
||||
height: calc(100vh - 215px);
|
||||
|
||||
Reference in New Issue
Block a user