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>
32 lines
940 B
TypeScript
32 lines
940 B
TypeScript
import React from 'react';
|
|
import { GridWrapper } from 'src/components/gridWrapper/GridWrapper';
|
|
import { Bakery } from 'src/views/tools/bakery/Bakery';
|
|
import { Accounting } from 'src/views/tools/accounting/Accounting';
|
|
import { NextPageContext } from 'next';
|
|
import { getProps } from 'src/utils/ssr';
|
|
import { GET_WALLET_INFO } from 'src/graphql/queries/getWalletInfo';
|
|
import { BackupsView } from '../src/views/tools/backups/Backups';
|
|
import { MessagesView } from '../src/views/tools/messages/Messages';
|
|
import { WalletVersion } from '../src/views/tools/WalletVersion';
|
|
|
|
const ToolsView = () => (
|
|
<>
|
|
<Accounting />
|
|
<BackupsView />
|
|
<MessagesView />
|
|
<Bakery />
|
|
<WalletVersion />
|
|
</>
|
|
);
|
|
|
|
const Wrapped = () => (
|
|
<GridWrapper>
|
|
<ToolsView />
|
|
</GridWrapper>
|
|
);
|
|
|
|
export default Wrapped;
|
|
|
|
export async function getServerSideProps(context: NextPageContext) {
|
|
return await getProps(context, [GET_WALLET_INFO]);
|
|
}
|