svg - react components
This commit is contained in:
parent
122f14adf7
commit
fd8273a2fe
25 changed files with 488 additions and 65 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue