mirror of https://github.com/certusone/oyster.git
Add a bunch of index files for better pkg mgmt
This commit is contained in:
parent
8aac241384
commit
c80dc16518
|
@ -12,7 +12,10 @@ export const ExplorerLink = (props: {
|
||||||
}) => {
|
}) => {
|
||||||
const { type, code } = 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) {
|
if (!address) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -24,7 +27,7 @@ export const ExplorerLink = (props: {
|
||||||
<a
|
<a
|
||||||
href={`https://explorer.solana.com/${type}/${address}`}
|
href={`https://explorer.solana.com/${type}/${address}`}
|
||||||
// eslint-disable-next-line react/jsx-no-target-blank
|
// eslint-disable-next-line react/jsx-no-target-blank
|
||||||
target='_blank'
|
target="_blank"
|
||||||
title={address}
|
title={address}
|
||||||
style={props.style}
|
style={props.style}
|
||||||
>
|
>
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
export { ExplorerLink } from './ExplorerLink/index';
|
|
@ -0,0 +1,4 @@
|
||||||
|
import tokens from './tokens.json';
|
||||||
|
export default {
|
||||||
|
tokens,
|
||||||
|
};
|
|
@ -0,0 +1,3 @@
|
||||||
|
export * as Accounts from './accounts';
|
||||||
|
export * as Connection from './connection';
|
||||||
|
export * as Wallet from './wallet';
|
|
@ -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';
|
|
@ -0,0 +1,5 @@
|
||||||
|
export * from './eventEmitter';
|
||||||
|
export * from './ids';
|
||||||
|
export * from './layout';
|
||||||
|
export * from './notifications';
|
||||||
|
export * from './utils';
|
|
@ -0,0 +1 @@
|
||||||
|
export * as solong_adapter from './solong_adapter';
|
Loading…
Reference in New Issue