-
Notifications
You must be signed in to change notification settings - Fork 3
WIP: Dropzone #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
WIP: Dropzone #17
Conversation
topolanekmartin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Příště bych zvolil vhodnější commit zprávu. Zpráva "commit" toho moc neřekne, když si budeš někdy zpětně procházet git historii :D Dospal jsem ještě pár bodů, které bych zlepšil :) jinak supr práce.
| @@ -0,0 +1,7 @@ | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smazal bych tento soubor. Už ho tu jednou máme jako .prettierrc.json
| StyledSVGCircleTwo, | ||
| StyledSVGCircleText, | ||
| } from './style/Circle.style'; | ||
| import { ColorResult } from 'react-color'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tento import jsi nevyužila, prosím smazat.
| dashOffset={currentDashOffset} | ||
| /> | ||
| </StyledSVG> | ||
| <StyledSVGCircleText key={progress} type={circleTwoType}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Netuším proč tato komponenta má v názvu SVG. Zvolil bych spíš název StyledLoadingCircleText
| transform: rotate(-90deg); | ||
| transition: stroke 1s ease; | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zde ti vznikl řádek navíc. Smazat
| props.type === 'success' && | ||
| css` | ||
| stroke: ${props.theme.color.success.alpha}; | ||
| `} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jednotlivé bloky bych odděloval řádkem. Blokem mám na mysli například toto
${(props) =>
props.type === 'success' &&
css`
stroke: ${props.theme.color.success.alpha};
`}
|
|
||
| &:hover { | ||
| border: 1px dashed ${(props) => props.theme.color.primary.alpha}; | ||
| ${StyledDropZoneText} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oddělit řádkem :)
| border: 1px dashed ${(props) => props.theme.color.border}; | ||
|
|
||
| &:hover { | ||
| border: 1px dashed ${(props) => props.theme.color.primary.alpha}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je potřeba zde nastavovat opět stejné hodnoty, co jsi nastavila o tři řádky výš? Nemohli bychom v hoveru nastavit jen barvu borderu? :)
Je to i z toho důvodu, že kdybys náhodou chtěla změnit typ nebo šířku borderu tak to musíš upravovat na dvou místech.
| `; | ||
|
|
||
| export const StyledDropZoneIcon = styled(Icon)<StyledDropZoneIconProps>` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smazat řádek, jinak supr komponenta :)
|
|
||
| export const StyledUploadingTitle = styled(Title)<StyledUploadingTitle>` | ||
| text-align: center; | ||
| ${(props) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tyto dva bloky oddělit řádkem
| `} | ||
| `; | ||
|
|
||
| export const StyledProgressCircle = styled.div` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Od tohoto řádku a níž jsou komponenty, které máš definované jinde, nepletu se? Pokud jo, tak to smaž
No description provided.