расчехлили амо и шаблоны

This commit is contained in:
Nastya 2024-08-14 19:05:30 +03:00
parent 6a7063fe0c
commit 39ae777a63
2 changed files with 27 additions and 32 deletions

@ -59,35 +59,32 @@ export const PartnersBoard: FC<PartnersBoardProps> = ({
}} }}
> >
<Box> <Box>
{ <>
user.user._id === "6694dc24d5802e9f13662a7e" && <Typography
<> variant="h6"
<Typography sx={{
variant="h6" textAlign: { xs: "start", sm: "start", md: "start" },
sx={{ lineHeight: "1",
textAlign: { xs: "start", sm: "start", md: "start" }, marginBottom: "12px",
lineHeight: "1", }}
marginBottom: "12px", >
}} CRM
> </Typography>
CRM <Box
</Typography> sx={{
<Box display: "flex",
sx={{ flexWrap: "wrap",
display: "flex", justifyContent: { xs: "start", sm: "start", md: "start" },
flexWrap: "wrap", }}
justifyContent: { xs: "start", sm: "start", md: "start" }, >
}} <ServiceButton
> logo={<AmoCRMLogo />}
<ServiceButton setIsModalOpen={setIsAmoCrmModalOpen}
logo={<AmoCRMLogo />} setCompanyName={setCompanyName}
setIsModalOpen={setIsAmoCrmModalOpen} name={"amoCRM"}
setCompanyName={setCompanyName} />
name={"amoCRM"} </Box>
/> </>
</Box>
</>
}
<Typography <Typography
variant="h6" variant="h6"

@ -21,8 +21,6 @@ export default function CreateButtons({ mt }: string) {
marginTop: mt, marginTop: mt,
}} }}
> >
{
user.user._id === "6694dc24d5802e9f13662a7e" &&
<Link to="/gallery" style={{ textDecoration: "none" }}> <Link to="/gallery" style={{ textDecoration: "none" }}>
<Button <Button
sx={{ sx={{
@ -45,7 +43,7 @@ export default function CreateButtons({ mt }: string) {
</Button> </Button>
</Link> </Link>
}
<Button <Button
variant="contained" variant="contained"
sx={{ sx={{