feat: processing of modules in card, renaming
This commit is contained in:
@@ -22,6 +22,7 @@ const CardSummaryItem: FC<Props> = ({ cardSummary, color }) => {
|
||||
const { onDelete, onComplete, onDeleteFromGroup } = useCardSummaryState();
|
||||
|
||||
const isServicesAndProductsIncluded = isModuleInProject(Modules.SERVICES_AND_PRODUCTS, selectedProject);
|
||||
const isClientIncluded = isModuleInProject(Modules.CLIENTS, selectedProject);
|
||||
|
||||
const onDealSummaryClick = () => {
|
||||
CardService.getCardById({ cardId: cardSummary.id }).then(card => {
|
||||
@@ -61,16 +62,13 @@ const CardSummaryItem: FC<Props> = ({ cardSummary, color }) => {
|
||||
style={{ backgroundColor: color }}
|
||||
>
|
||||
<Flex direction={"column"} flex={1} gap={rem(3)}>
|
||||
<Flex justify={"space-between"}>
|
||||
|
||||
<Text
|
||||
c={"gray.6"}
|
||||
size={"xs"}
|
||||
|
||||
>
|
||||
{cardSummary.clientName}
|
||||
</Text>
|
||||
</Flex>
|
||||
{isClientIncluded && (
|
||||
<Flex justify={"space-between"}>
|
||||
<Text c={"gray.6"} size={"xs"}>
|
||||
{cardSummary.clientName}
|
||||
</Text>
|
||||
</Flex>
|
||||
)}
|
||||
|
||||
<Text
|
||||
c={"blue.5"}
|
||||
|
||||
Reference in New Issue
Block a user