mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 14:22:33 +01:00
* chore: 🔧 remove client * chore: 🔧 change cookie name * chore: 🔧 remove auth param * chore: 🔧 remove auth components * chore: 🔧 add getaccount query * fix: 🐛 tests * chore: 🔧 get account * chore: 🔧 status check * chore: 🔧 remove log * chore: 🔧 update apollo client * refactor: ♻️ server side props * chore: 🔧 ssr queries * chore: 🔧 more ssr queries * chore: 🔧 type check * chore: 🔧 increase nodeinfo limit Co-authored-by: apotdevin <apotdevincab@gmail.com>
29 lines
830 B
TypeScript
29 lines
830 B
TypeScript
import React from 'react';
|
|
import { GridWrapper } from 'src/components/gridWrapper/GridWrapper';
|
|
import { NextPageContext } from 'next';
|
|
import { getProps } from 'src/utils/ssr';
|
|
import { GET_CHAIN_TRANSACTIONS } from 'src/graphql/queries/getChainTransactions';
|
|
import { GET_UTXOS } from 'src/graphql/queries/getUtxos';
|
|
import { ChainTransactions } from '../src/views/chain/transactions/ChainTransactions';
|
|
import { ChainUtxos } from '../src/views/chain/utxos/ChainUtxos';
|
|
|
|
const ChainView = () => {
|
|
return (
|
|
<>
|
|
<ChainUtxos />
|
|
<ChainTransactions />
|
|
</>
|
|
);
|
|
};
|
|
|
|
const Wrapped = () => (
|
|
<GridWrapper>
|
|
<ChainView />
|
|
</GridWrapper>
|
|
);
|
|
|
|
export default Wrapped;
|
|
|
|
export async function getServerSideProps(context: NextPageContext) {
|
|
return await getProps(context, [GET_CHAIN_TRANSACTIONS, GET_UTXOS]);
|
|
}
|