Skip to content

Commit

Permalink
add AddressInfo export fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VoroninDima committed Jun 11, 2024
1 parent 941b1c3 commit 1ae6ff9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/components/AddressInfo/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './AddressInfo';

Check failure on line 1 in src/components/AddressInfo/index.ts

View workflow job for this annotation

GitHub Actions / build

Insert `⏎`
2 changes: 1 addition & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export * from './Badge';
export * from './Radio';
export * from './Checkbox';
export * from './InlineLoader';
export * from './Header/components/AddressInfo'
export * from './AddressInfo'

Check failure on line 19 in src/components/index.ts

View workflow job for this annotation

GitHub Actions / build

Insert `;⏎`

0 comments on commit 1ae6ff9

Please sign in to comment.