feat: deals fetch

This commit is contained in:
2025-08-03 16:55:36 +04:00
parent 5435750fb5
commit 315e7db3db
14 changed files with 148 additions and 71 deletions

View File

@ -1,5 +1,5 @@
import { Card } from "@mantine/core";
import { DealSchema } from "@/types/DealSchema";
import { DealSchema } from "@/client";
type Props = {
deal: DealSchema;

View File

@ -1,8 +1,9 @@
import React, { FC, useMemo } from "react";
import { Box } from "@mantine/core";
import DealCard from "@/app/deals/components/DealCard/DealCard";
import { DealSchema } from "@/client";
import { SortableItem } from "@/components/SortableDnd/SortableItem";
import { DealSchema } from "@/types/DealSchema";
type Props = {
deal: DealSchema;

View File

@ -3,8 +3,7 @@ import { defaultDropAnimation, DragOverlay } from "@dnd-kit/core";
import DealCard from "@/app/deals/components/DealCard/DealCard";
import StatusColumn from "@/app/deals/components/StatusColumn/StatusColumn";
import { useStatusesContext } from "@/app/deals/contexts/StatusesContext";
import { DealSchema } from "@/types/DealSchema";
import { StatusSchema } from "@/client";
import { DealSchema, StatusSchema } from "@/client";
type Props = {
activeDeal: DealSchema | null;

View File

@ -6,8 +6,7 @@ import {
} from "@dnd-kit/sortable";
import { Box, Stack, Text } from "@mantine/core";
import DealContainer from "@/app/deals/components/DealContainer/DealContainer";
import { StatusSchema } from "@/client";
import { DealSchema } from "@/types/DealSchema";
import { DealSchema, StatusSchema } from "@/client";
import { sortByLexorank } from "@/utils/lexorank";
type Props = {