Skip to content

Commit

Permalink
metaport#199 Export display functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytrotkk committed Oct 26, 2023
1 parent 81e52f2 commit 371ae10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export { useMetaportStore } from './store/MetaportStore'
export { type MetaportState } from './store/MetaportState'
export { useUIStore, useCollapseStore, type UIState, type CollapseState } from './store/Store'
export { useSFuelStore, type SFuelState } from './store/SFuelStore'
export { useDisplayFunctions, type DisplayFunctions } from './store/DisplayFunctions'

import Metaport from './components/Metaport'
import MetaportProvider from './components/MetaportProvider'
Expand Down Expand Up @@ -37,7 +38,7 @@ import { CHAINS_META, getChainAlias } from './core/metadata'
import { cls, styles, cmn } from './core/css'
import MetaportCore from './core/metaport'
import { chainBg } from './core/metadata'
import { BASE_EXPLORER_URLS } from './core/constants'
import { BASE_EXPLORER_URLS, GRAY_BG } from './core/constants'
import { toWei, fromWei } from './core/convertation'

import { getWidgetTheme as getMetaportTheme } from './core/themes'
Expand Down Expand Up @@ -84,6 +85,7 @@ export {
PROXY_ENDPOINTS,
BASE_EXPLORER_URLS,
CHAINS_META,
GRAY_BG,
chainBg,
getChainAlias,
RainbowConnectButton
Expand Down
2 changes: 1 addition & 1 deletion src/store/DisplayFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { useSFuelStore } from '../store/SFuelStore'
import { MAINNET_CHAIN_NAME } from '../core/constants'
import { AddressType } from '../core/interfaces'

type DisplayFunctions = {
export type DisplayFunctions = {
showFrom: () => boolean
showTo: () => boolean
showSwitch: () => boolean
Expand Down

0 comments on commit 371ae10

Please sign in to comment.