@sky-mavis/tanto-widget
Version:
Tanto Widget
59 lines (55 loc) • 1.63 kB
JavaScript
'use strict';
var jsxRuntime = require('@emotion/react/jsx-runtime');
var route = require('../types/route.cjs');
var ConnectInjector = require('../views/Connect/ConnectInjector.cjs');
var ConnectWC = require('../views/Connect/ConnectWC.cjs');
var Profile = require('../views/Profile/Profile.cjs');
var WalletList = require('../views/WalletList/WalletList.cjs');
const viewConfigs = {
[route.Route.WALLETS]: {
route: route.Route.WALLETS,
showBackButton: false,
content: jsxRuntime.jsx(WalletList.WalletList, {}),
title: jsxRuntime.jsx("div", {
css: {
flex: 1,
display: 'flex',
justifyContent: 'center',
alignItems: 'flex-end',
height: '100%',
paddingBottom: 6,
paddingTop: 12
},
children: jsxRuntime.jsx("p", {
css: theme => ({
fontSize: '0.55em',
fontWeight: 500,
color: theme.mutedText,
textTransform: 'uppercase',
textAlign: 'center'
}),
children: "Powered by Ronin Wallet"
})
})
},
[route.Route.CONNECT_INJECTOR]: {
route: route.Route.CONNECT_INJECTOR,
content: jsxRuntime.jsx(ConnectInjector.ConnectInjector, {})
},
[route.Route.CONNECT_WC]: {
route: route.Route.CONNECT_WC,
content: jsxRuntime.jsx(ConnectWC.ConnectWC, {})
},
[route.Route.PROFILE]: {
route: route.Route.PROFILE,
content: jsxRuntime.jsx(Profile.Profile, {}),
title: jsxRuntime.jsx("p", {
css: {
width: '100%',
textAlign: 'center'
},
children: "Connected"
})
}
};
exports.viewConfigs = viewConfigs;