svg - react components

This commit is contained in:
Tatiana Nikolaeva 2025-05-14 19:54:39 +05:00
parent 122f14adf7
commit fd8273a2fe
25 changed files with 488 additions and 65 deletions

View file

@ -1,5 +1,6 @@
import React from 'react';
import styles from './Account.module.css'
import AccountImg from '../../assets/account.svg?react';
interface AccountProps {
href: string;
@ -10,7 +11,7 @@ const Account: React.FC<AccountProps> = ({href, user}) => {
return (
<div className={styles.account}>
<a className={styles.accountText} href={href}>
<img src='../../../public/account.svg' className={styles.accountImg} alt='account'/>
<AccountImg className={styles.accountImg}/>
{user}
</a>
</div>