Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove profile image #740

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/profile/components/Profile/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
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
Loading