feat: deal tags
This commit is contained in:
@ -9,6 +9,7 @@ import useIsMobile from "@/hooks/utils/useIsMobile";
|
||||
import { DealSchema } from "@/lib/client";
|
||||
import { ModuleNames } from "@/modules/modules";
|
||||
import styles from "./DealCard.module.css";
|
||||
import DealTags from "@/components/ui/DealTags/DealTags";
|
||||
|
||||
type Props = {
|
||||
deal: DealSchema;
|
||||
@ -100,6 +101,7 @@ const DealCard = ({ deal, isInGroup = false }: Props) => {
|
||||
</>
|
||||
)}
|
||||
</Stack>
|
||||
{!deal.group && <DealTags dealId={deal.id} tags={deal.tags} />}
|
||||
</Stack>
|
||||
</Card>
|
||||
);
|
||||
|
||||
@ -7,6 +7,7 @@ import { useDebouncedValue } from "@mantine/hooks";
|
||||
import GroupMenu from "@/app/deals/components/mobile/GroupMenu/GroupMenu";
|
||||
import DealCard from "@/app/deals/components/shared/DealCard/DealCard";
|
||||
import { useDealsContext } from "@/app/deals/contexts/DealsContext";
|
||||
import DealTags from "@/components/ui/DealTags/DealTags";
|
||||
import useIsMobile from "@/hooks/utils/useIsMobile";
|
||||
import GroupWithDealsSchema from "@/types/GroupWithDealsSchema";
|
||||
import styles from "./DealsGroup.module.css";
|
||||
@ -87,6 +88,12 @@ const DealsGroup: FC<Props> = ({ group }) => {
|
||||
key={deal.id}
|
||||
/>
|
||||
))}
|
||||
{group.items.length > 0 && (
|
||||
<DealTags
|
||||
groupId={group.id}
|
||||
tags={group.items[0].tags}
|
||||
/>
|
||||
)}
|
||||
</Stack>
|
||||
);
|
||||
};
|
||||
|
||||
@ -33,6 +33,8 @@ const useProjectsContextState = (): ProjectsContextState => {
|
||||
[projects, selectedProjectId]
|
||||
);
|
||||
|
||||
console.log(selectedProject);
|
||||
|
||||
const modulesSet = useMemo(
|
||||
() =>
|
||||
new Set(
|
||||
|
||||
Reference in New Issue
Block a user