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>
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
import React from 'react';
|
|
import { GridWrapper } from 'src/components/gridWrapper/GridWrapper';
|
|
import { Version } from 'src/components/version/Version';
|
|
import { NextPageContext } from 'next';
|
|
import { getProps } from 'src/utils/ssr';
|
|
import { GET_NODE_INFO } from 'src/graphql/queries/getNodeInfo';
|
|
import { NetworkInfo } from '../src/views/home/networkInfo/NetworkInfo';
|
|
import { AccountInfo } from '../src/views/home/account/AccountInfo';
|
|
import { QuickActions } from '../src/views/home/quickActions/QuickActions';
|
|
import { FlowBox } from '../src/views/home/reports/flow';
|
|
import { ForwardBox } from '../src/views/home/reports/forwardReport';
|
|
import { LiquidReport } from '../src/views/home/reports/liquidReport/LiquidReport';
|
|
import { ConnectCard } from '../src/views/home/connect/Connect';
|
|
|
|
const HomeView = () => {
|
|
return (
|
|
<>
|
|
<Version />
|
|
<AccountInfo />
|
|
<ConnectCard />
|
|
<QuickActions />
|
|
<FlowBox />
|
|
<LiquidReport />
|
|
<ForwardBox />
|
|
<NetworkInfo />
|
|
</>
|
|
);
|
|
};
|
|
|
|
const Wrapped = () => (
|
|
<GridWrapper>
|
|
<HomeView />
|
|
</GridWrapper>
|
|
);
|
|
|
|
export default Wrapped;
|
|
|
|
export async function getServerSideProps(context: NextPageContext) {
|
|
return await getProps(context, [GET_NODE_INFO]);
|
|
}
|