From da8e26d301a3d16f9fa43ef5406928b21e36ed46 Mon Sep 17 00:00:00 2001 From: Fernando Falci Date: Wed, 24 Apr 2024 15:14:41 +0200 Subject: [PATCH] refactor: move CustomAvatar to components --- src/{ => components}/CustomAvatar.jsx | 4 ++-- src/main.jsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => components}/CustomAvatar.jsx (70%) diff --git a/src/CustomAvatar.jsx b/src/components/CustomAvatar.jsx similarity index 70% rename from src/CustomAvatar.jsx rename to src/components/CustomAvatar.jsx index 9ed802c..82f6ab0 100644 --- a/src/CustomAvatar.jsx +++ b/src/components/CustomAvatar.jsx @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; -import defaultAvatar from './assets/avatar.svg'; -import { usePrimaryName } from './hooks/usePrimaryName'; +import defaultAvatar from '../assets/avatar.svg'; +import { usePrimaryName } from '../hooks/usePrimaryName'; export const CustomAvatar = ({ size }) => { const { avatar } = usePrimaryName(); diff --git a/src/main.jsx b/src/main.jsx index 243ff51..2d3e3ab 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -12,7 +12,7 @@ import { WALLET_CONNECT_APP_NAME, WALLET_CONNECT_PROJECT_ID, } from './constants.js'; -import { CustomAvatar } from './CustomAvatar.jsx'; +import { CustomAvatar } from './components/CustomAvatar.jsx'; import '@rainbow-me/rainbowkit/styles.css'; import 'react-loading-skeleton/dist/skeleton.css';