Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 71e76d7

Browse files
committed
Merge branch 'feature/profile' of github.com:FileFighter/WebApp into feature/profile
2 parents c1f792e + 93d18e7 commit 71e76d7

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed
Lines changed: 1 addition & 0 deletions
Loading

src/background/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ export const constants = process.env.NODE_ENV === "development" ? dev : prod;
2121

2222
export const MIN_PASSWORD_LENGTH = 8;
2323
export const MAX_PASSWORD_LENGTH = 20;
24-
export const DEFAULT_ALERT_DURATION = 3500;
24+
export const DEFAULT_ALERT_DURATION = 3500;

src/components/pages/User/Profile.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {RootState} from "../../../background/redux/store";
66
import {DEFAULT_ALERT_DURATION, MIN_PASSWORD_LENGTH} from "../../../background/constants";
77
import {changeUserInformation, UserInformation} from "../../../background/api/userInformation";
88
import {notMinStrLength} from "../../../background/methods/checkInput";
9+
import edit_svg from "../../../assets/images/icons/material.io/edit_white_24dp.svg";
910

1011

1112
export default function Profile(): ReactElement {
@@ -136,6 +137,7 @@ export default function Profile(): ReactElement {
136137
<Button
137138
onClick={changeEditMode}
138139
>
140+
{!isEditing && <img src={edit_svg} alt={"edit icon"} className="pr-2" />}
139141
{isEditing ? "Cancel" : "Edit"}
140142
</Button>
141143
</Row>

0 commit comments

Comments
 (0)