Skip to content

Commit

Permalink
Merge 8795d95 into f9bb8ad
Browse files Browse the repository at this point in the history
  • Loading branch information
BenGamma authored Apr 11, 2020
2 parents f9bb8ad + 8795d95 commit eb1fc8d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('[Settings]', () => {
cy.get('[data-cy=info-description')
.clear()
.type(info.description)
cy.get('[data-cy=cover_image-1]')
cy.get('[data-cy=coverImages0]')
.find(':file')
.uploadFiles(info.coverImage)
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Howto/Content/Common/Howto.form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Label = styled.label`

@inject('howtoStore')
@observer
export class HowtoForm extends React.Component<IProps, IState> {
export class HowtoForm extends React.PureComponent<IProps, IState> {
uploadRefs: { [key: string]: UploadedFile | null } = {}
constructor(props: any) {
super(props)
Expand Down
32 changes: 24 additions & 8 deletions src/pages/Settings/content/formSections/UserInfos.section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ export class UserInfosSection extends React.Component<IProps, IState> {
<Field
canDelete
hasText={false}
id="cover_image-1"
data-cy="cover_image-1"
id="coverImages[0]"
data-cy="coverImages0"
name="coverImages[0]"
src={
initialFormValues.coverImages
Expand All @@ -142,8 +142,8 @@ export class UserInfosSection extends React.Component<IProps, IState> {
<Field
canDelete
hasText={false}
id="cover_image-2"
data-cy="cover_image-2"
id="coverImages[1]"
data-cy="coverImages[1]"
name="coverImages[1]"
src={
initialFormValues.coverImages
Expand All @@ -158,8 +158,8 @@ export class UserInfosSection extends React.Component<IProps, IState> {
<Field
canDelete
hasText={false}
id="cover_image-3"
data-cy="cover_image-3"
id="coverImages[2]"
data-cy="coverImages[2]"
name="coverImages[2]"
src={
initialFormValues.coverImages
Expand All @@ -174,8 +174,8 @@ export class UserInfosSection extends React.Component<IProps, IState> {
<Field
canDelete
hasText={false}
id="cover_image-4"
data-cy="cover_image-4"
id="coverImages[3]"
data-cy="coverImages[3]"
name="coverImages[3]"
src={
initialFormValues.coverImages
Expand All @@ -186,6 +186,22 @@ export class UserInfosSection extends React.Component<IProps, IState> {
customChange={v => this.props.onCoverImgChange(v, 3)}
/>
</Box>
<Box
bg={theme.colors.softblue}
mt={2}
p={2}
width={1}
sx={{ borderRadius: '3px' }}
>
<Text small>
The cover images are shown in your profile and helps us evaluate
your account.
</Text>
<Text small>
Make sure the first image shows your space. Best size is
1920x1080.
</Text>
</Box>
</Flex>
<Flex wrap={'nowrap'} alignItems={'center'} width={1}>
<Text mb={2} mt={7} medium>
Expand Down

0 comments on commit eb1fc8d

Please sign in to comment.