diff --git a/package.json b/package.json index 916c883..46ed7b5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@airdao/ui-library", - "version": "1.4.18", + "version": "1.4.19", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/types.d.ts", diff --git a/src/components/Header/components/AddressInfo.tsx b/src/components/AddressInfo/AddressInfo.tsx similarity index 84% rename from src/components/Header/components/AddressInfo.tsx rename to src/components/AddressInfo/AddressInfo.tsx index 6c9f5c1..10afd8b 100644 --- a/src/components/Header/components/AddressInfo.tsx +++ b/src/components/AddressInfo/AddressInfo.tsx @@ -1,17 +1,17 @@ import React, { useState } from 'react'; -import useClickOutside from '../../../hooks/useClickOutside'; +import useClickOutside from '../../hooks/useClickOutside'; import { useRef } from 'react'; -import styles from '../Header.module.css'; +import styles from '../Header/Header.module.css'; -import { AddressInfoProps } from '../Header.types'; +import { AddressInfoProps } from '../Header/Header.types'; -import airdaoIcon from '../assets/airdao.svg'; +import airdaoIcon from '../Header/assets/airdao.svg'; // import circleCheck from '../assets/circle-check.svg'; -import copyIcon from '../assets/copy.svg'; -import logoutIcon from '../assets/logout.svg'; +import copyIcon from '../Header/assets/copy.svg'; +import logoutIcon from '../Header/assets/logout.svg'; -export default function AddressInfo({ +export function AddressInfo({ address = '', balance, logout, diff --git a/src/components/AddressInfo/index.ts b/src/components/AddressInfo/index.ts new file mode 100644 index 0000000..4950690 --- /dev/null +++ b/src/components/AddressInfo/index.ts @@ -0,0 +1 @@ +export * from './AddressInfo'; \ No newline at end of file diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 1638bbc..e750eca 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -2,7 +2,7 @@ import React, { useEffect, useRef, useState } from 'react'; import HeaderNav from './components/HeaderNav'; -import AddressInfo from './components/AddressInfo'; +import { AddressInfo } from '../AddressInfo'; import s from './Header.module.css'; import logo from './assets/logo.svg'; diff --git a/src/components/index.ts b/src/components/index.ts index a5e2738..c23b476 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -16,4 +16,4 @@ export * from './Badge'; export * from './Radio'; export * from './Checkbox'; export * from './InlineLoader'; -export * from './Header/components/AddressInfo' \ No newline at end of file +export * from './AddressInfo' \ No newline at end of file