1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

uploading avatar

This commit is contained in:
Fedor Katurov 2019-11-19 16:18:35 +07:00
parent 60dffc2353
commit fda42721d9
3 changed files with 57 additions and 1 deletions

View file

@ -16,6 +16,7 @@ import {
import path from "ramda/es/path";
import * as UPLOAD_ACTIONS from "~/redux/uploads/actions";
import * as AUTH_ACTIONS from "~/redux/auth/actions";
import { Icon } from "~/components/input/Icon";
const mapStateToProps = state => ({
user: pick(["id"], selectAuthUser(state)),
@ -94,6 +95,11 @@ const ProfileAvatarUnconnected: FC<IProps> = ({
}}
>
{can_edit && <input type="file" onInput={onInputChange} />}
{can_edit && (
<div className={styles.can_edit}>
<Icon icon="photo_add" />
</div>
)}
</div>
);
};