Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

calendar on main page#44

Open
mariik4 wants to merge 32 commits into
stagingfrom
9647165
Open

calendar on main page#44
mariik4 wants to merge 32 commits into
stagingfrom
9647165

Conversation

@mariik4

@mariik4 mariik4 commented Mar 27, 2023

Copy link
Copy Markdown
Collaborator

Screenshot 2023-03-27 at 22 08 33

@vercel

vercel Bot commented Mar 27, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xieffect ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2023 10:33pm
xiworkshop ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 15, 2023 10:33pm

@unknownproperty unknownproperty left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Стоит всё же переименовать название и сделать слитно, да не очень красиво, но зато не бросается в глаза, так как snake_case мы вовсе не используем

import { Grid, Stack, Typography, useTheme, useMediaQuery, Box } from '@mui/material';
import { useStore } from 'store/connect';
import { Arrow } from 'pkg.icons.arrow';
import { DoubleArrow } from 'pkg.icons.double_arrow';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

я бы лучше сделал слитно doublearrow

alignItems="center"
sx={{ width: '108px', mr: '6px' }}
>
<Box onClick={getPrevMonth} sx={{ cursor: 'pointer' }}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы тогда здесь передал component="button" или сделал бы лучше Button

<Stack justifyContent="center" onClick={getNextWeek} sx={{ cursor: 'pointer' }}>
<Arrow sx={{ fontSize: '18px' }} />
</Stack>
<Box onClick={getNextMonth} sx={{ cursor: 'pointer' }}>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тоже самое

<Stack spacing={0.25} key={`${task.id}`}>
{task.deadline && (
<Badge
text="Дедлайн"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я переделал немного Badge, теперь text это children и находится он внутри тегов, то есть <Badge>Дедлайн</Badge>

)}
{task.type === 'conference' && (
<Badge
text="Конференция"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тоже, что выше

size="small"
icon={Camera}
iconProps={{
sx: { width: '12px', height: '12px', fontSize: '12px' },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Если не ошибаюсь width, height по умолчанию такого размера у icon small

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready to test request is waiting for QA-engineer to test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants