refactor: move CustomAvatar to components
This commit is contained in:
parent
311b0eef6c
commit
da8e26d301
@ -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();
|
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user