Skip to content

Commit

Permalink
Merge branch 'main' of github.com:EscolaLMS/components into feature/c…
Browse files Browse the repository at this point in the history
…ertificate-card
  • Loading branch information
Przemek committed Mar 5, 2024
2 parents 88ffeac + 5dbb535 commit 3ed3b38
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/components/atoms/ProgressBar/ProgressBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const StyledDiv = styled.div<{ $variant?: VariantTypeProp }>`
}
.progress-container {
&:not(:last-child) {
margin-bottom: 6px;
}
Expand Down
31 changes: 19 additions & 12 deletions src/components/organisms/MyProfileForm/MyProfileForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import { Input, Button, Text, Checkbox, TextArea } from "../../../";
import { ExtendableStyledComponent } from "types/component";

const StyledFormHeader = styled.div<{ mobile: boolean }>`
text-align: center;
h2,
h3,
h4 {
Expand All @@ -26,6 +24,15 @@ const StyledFormHeader = styled.div<{ mobile: boolean }>`
text-align: left;
}
.upload {
display: flex;
align-items: center;
justify-content: flex-start;
min-width: 250px;
.wrapper {
margin-right: 20px;
width: 40%;
}
}
`;

Expand All @@ -37,7 +44,7 @@ const StyledDiv = styled.div<{ mobile: boolean }>`
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
align-items: flex-start;
align-content: center;
.lms-checkbox {
margin: 20px 0;
Expand Down Expand Up @@ -168,6 +175,15 @@ export const MyProfileForm: React.FC<Props> = ({
return (
<>
<StyledDiv className="wellms-component" mobile={mobile}>
<StyledFormHeader className="wellms-component" mobile={mobile}>
<Text size="18">{t("MyProfileForm.Avatar")}</Text>
<Upload
path={initialValues.path_avatar}
url={initialValues.avatar}
accept="image/*"
onChange={onAvatarChange}
/>
</StyledFormHeader>
<Formik
enableReinitialize
initialValues={initialValues}
Expand Down Expand Up @@ -343,15 +359,6 @@ export const MyProfileForm: React.FC<Props> = ({
</form>
)}
</Formik>{" "}
<StyledFormHeader className="wellms-component" mobile={mobile}>
<Text size="18">{t("MyProfileForm.Avatar")}</Text>
<Upload
path={initialValues.path_avatar}
url={initialValues.avatar}
accept="image/*"
onChange={onAvatarChange}
/>
</StyledFormHeader>
</StyledDiv>
</>
);
Expand Down

0 comments on commit 3ed3b38

Please sign in to comment.