Add a bunch of index files for better pkg mgmt

This commit is contained in:
Dummy Tester 123 2021-02-08 17:54:17 -06:00
parent 8aac241384
commit c80dc16518
7 changed files with 27 additions and 2 deletions

View File

@ -12,7 +12,10 @@ export const ExplorerLink = (props: {
}) => {
const { type, code } = props;
const address = typeof props.address === 'string' ? props.address : props.address?.toBase58();
const address =
typeof props.address === 'string'
? props.address
: props.address?.toBase58();
if (!address) {
return null;
@ -24,7 +27,7 @@ export const ExplorerLink = (props: {
<a
href={`https://explorer.solana.com/${type}/${address}`}
// eslint-disable-next-line react/jsx-no-target-blank
target='_blank'
target="_blank"
title={address}
style={props.style}
>

View File

@ -0,0 +1 @@
export { ExplorerLink } from './ExplorerLink/index';

View File

@ -0,0 +1,4 @@
import tokens from './tokens.json';
export default {
tokens,
};

View File

@ -0,0 +1,3 @@
export * as Accounts from './accounts';
export * as Connection from './connection';
export * as Wallet from './wallet';

View File

@ -0,0 +1,8 @@
export * as actions from './actions';
export * as components from './components';
export * as config from './config';
export * as constants from './constants';
export * as hooks from './hooks';
export * as models from './models';
export * as utils from './utils';
export * as walletAdapters from './wallet-adapters';

View File

@ -0,0 +1,5 @@
export * from './eventEmitter';
export * from './ids';
export * from './layout';
export * from './notifications';
export * from './utils';

View File

@ -0,0 +1 @@
export * as solong_adapter from './solong_adapter';