Skip to content

Commit

Permalink
fix: bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
borkopetrovicc committed Jul 21, 2023
1 parent 6d98423 commit 1185de2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/containers/Profiles/CreateProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const CreateProfile = () => {
avatar_url: avatarUrl,
pin: undefined,
};

const createProfileHandler: UseFormOnSubmitHandler<ProfileFormValues> = async (formData, { setSubmitting, setErrors }) => {
try {
const profile = (
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Profiles/DeleteProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const DeleteProfile = () => {
</div>
<div className={styles.deleteButtons}>
<Button label="Delete" color="delete" variant="contained" onClick={deleteHandler} />
<Button className={styles.cancelButton} label="Cancel" variant="outlined" onClick={closeHandler} />
<Button label="Cancel" variant="outlined" onClick={closeHandler} />
</div>
</div>
</Dialog>
Expand Down
4 changes: 1 addition & 3 deletions src/containers/Profiles/Profiles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@
.deleteButtons {
display: flex;
justify-content: flex-end;
}
.cancelButton {
margin-left: 6px;
gap: 6px;
}
h2 {
font-weight: 400;
Expand Down

0 comments on commit 1185de2

Please sign in to comment.