Skip to content

Commit

Permalink
Update UserInfo.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
netzelnatalia authored Nov 19, 2023
1 parent b181e54 commit 75fb934
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/components/UserInfo/UserInfo.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import React from 'react';
import { User } from '../../types/User';
import { User } from '../../types/api.types';
import './UserInfo.scss';

type UserProp = {
user: User,
type UserInfoProps = {
user: User
};

export const UserInfo: React.FC<UserProp> = ({ user }) => (
<a className="UserInfo" href={`mailto:${user.email}`}>
{user.name}
</a>
);
export const UserInfo: React.FC<UserInfoProps> = ({ user }) => {
return (
<a className="UserInfo" href={`mailto:${user.email}`}>
{user.name}
</a>
);
};

0 comments on commit 75fb934

Please sign in to comment.