Skip to content

Conversation

@nikolsrnickova
Copy link
Collaborator

No description provided.

@topolanekmartin topolanekmartin changed the title Dropzone WIP: Dropzone Jul 21, 2020
@topolanekmartin topolanekmartin self-requested a review July 22, 2020 05:25
Copy link
Collaborator

@topolanekmartin topolanekmartin left a 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 @@
{
Copy link
Collaborator

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';
Copy link
Collaborator

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}>
Copy link
Collaborator

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;


Copy link
Collaborator

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};
`}
Copy link
Collaborator

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} {
Copy link
Collaborator

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};
Copy link
Collaborator

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>`

Copy link
Collaborator

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) =>
Copy link
Collaborator

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`
Copy link
Collaborator

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ž

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants