refactor: move CustomAvatar to components

This commit is contained in:
Fernando Falci 2024-04-24 15:14:41 +02:00
parent 311b0eef6c
commit da8e26d301
No known key found for this signature in database
GPG Key ID: AB787B833D90361D
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import defaultAvatar from './assets/avatar.svg'; import defaultAvatar from '../assets/avatar.svg';
import { usePrimaryName } from './hooks/usePrimaryName'; import { usePrimaryName } from '../hooks/usePrimaryName';
export const CustomAvatar = ({ size }) => { export const CustomAvatar = ({ size }) => {
const { avatar } = usePrimaryName(); const { avatar } = usePrimaryName();

View File

@ -12,7 +12,7 @@ import {
WALLET_CONNECT_APP_NAME, WALLET_CONNECT_APP_NAME,
WALLET_CONNECT_PROJECT_ID, WALLET_CONNECT_PROJECT_ID,
} from './constants.js'; } from './constants.js';
import { CustomAvatar } from './CustomAvatar.jsx'; import { CustomAvatar } from './components/CustomAvatar.jsx';
import '@rainbow-me/rainbowkit/styles.css'; import '@rainbow-me/rainbowkit/styles.css';
import 'react-loading-skeleton/dist/skeleton.css'; import 'react-loading-skeleton/dist/skeleton.css';