fix: fixed labels in tabs in deal editor

This commit is contained in:
2025-09-19 09:24:49 +04:00
parent 79189bea9a
commit e049494fa5

View File

@ -1,7 +1,7 @@
import React, { FC, ReactNode } from "react"; import React, { FC, ReactNode } from "react";
import { IconEdit } from "@tabler/icons-react"; import { IconEdit } from "@tabler/icons-react";
import { motion } from "framer-motion"; import { motion } from "framer-motion";
import { Box, Tabs } from "@mantine/core"; import { Box, Tabs, Text } from "@mantine/core";
import GeneralTab from "@/app/deals/drawers/DealEditorDrawer/tabs/GeneralTab/GeneralTab"; import GeneralTab from "@/app/deals/drawers/DealEditorDrawer/tabs/GeneralTab/GeneralTab";
import useIsMobile from "@/hooks/utils/useIsMobile"; import useIsMobile from "@/hooks/utils/useIsMobile";
import { DealSchema, ProjectSchema } from "@/lib/client"; import { DealSchema, ProjectSchema } from "@/lib/client";
@ -43,7 +43,12 @@ const DealEditorBody: FC<Props> = props => {
key={moduleRender.key} key={moduleRender.key}
value={moduleRender.key} value={moduleRender.key}
leftSection={moduleRender.icon}> leftSection={moduleRender.icon}>
{moduleRender.label} <Box
style={{
justifyItems: "left",
}}>
<Text>{moduleRender.label}</Text>
</Box>
</Tabs.Tab> </Tabs.Tab>
); );
}); });