corrected components

This commit is contained in:
Tatiana Nikolaeva 2025-04-05 11:24:07 +05:00
parent a27087d681
commit 1bc96d830e
33 changed files with 618 additions and 247 deletions

View file

@ -1,15 +1,21 @@
/// <reference types="vite-plugin-svgr/client" />
import React from 'react';
import styles from './Account.module.css'
import AccountSvg from '../../../public/account.svg?react'
interface AccountProps {
href: string
href: string;
user: string;
}
const Account: React.FC<AccountProps> = ({href}) => {
const Account: React.FC<AccountProps> = ({href, user}) => {
return (
<a className={styles.account} href={href}>
<img src='../../../public/account.svg' alt='Личный кабинет'/>
</a>
<div>
<a className={styles.account} href={href}>
<AccountSvg className={styles.accountImg}/>
{user}
</a>
</div>
);
};