Skip to content

Commit

Permalink
Remove profile image
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrefkl committed Sep 11, 2024
1 parent 76357d2 commit b6e56e5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/profile/components/Profile/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
import React, { useContext } from 'react';
import { useContext } from 'react';

import DEFAULT_USER_IMAGE from 'common/img/profile/user.png';
import { ProfilePageContext } from 'profile/providers/ProfilePage';

import style from '../../less/profile.less';

export const Header = () => {
const { first_name, last_name, image } = useContext(ProfilePageContext);
const { first_name, last_name } = useContext(ProfilePageContext);
const fullName = `${first_name} ${last_name}`;
const imgSrc = image || DEFAULT_USER_IMAGE;
return (
<div className={style.header}>

Check failure on line 11 in src/profile/components/Profile/Header.tsx

View workflow job for this annotation

GitHub Actions / ESLint

src/profile/components/Profile/Header.tsx#L11

'React' must be in scope when using JSX (react/react-in-jsx-scope)
<img className={style.profileImage} src={imgSrc} />
<h1>{fullName}</h1>

Check failure on line 12 in src/profile/components/Profile/Header.tsx

View workflow job for this annotation

GitHub Actions / ESLint

src/profile/components/Profile/Header.tsx#L12

'React' must be in scope when using JSX (react/react-in-jsx-scope)
</div>
);
Expand Down

0 comments on commit b6e56e5

Please sign in to comment.