2020-04-12 18:27:01 +02:00
|
|
|
import React from 'react';
|
2020-05-26 07:03:33 +02:00
|
|
|
import { GridWrapper } from 'src/components/gridWrapper/GridWrapper';
|
2020-06-07 20:51:50 +02:00
|
|
|
import { Bakery } from 'src/views/tools/bakery/Bakery';
|
2020-06-27 11:44:43 +02:00
|
|
|
import { Accounting } from 'src/views/tools/accounting/Accounting';
|
2020-08-03 16:31:20 +02:00
|
|
|
import { NextPageContext } from 'next';
|
|
|
|
import { getProps } from 'src/utils/ssr';
|
2020-04-12 18:27:01 +02:00
|
|
|
import { BackupsView } from '../src/views/tools/backups/Backups';
|
|
|
|
import { MessagesView } from '../src/views/tools/messages/Messages';
|
2020-05-03 11:14:36 +02:00
|
|
|
import { WalletVersion } from '../src/views/tools/WalletVersion';
|
2020-04-12 18:27:01 +02:00
|
|
|
|
|
|
|
const ToolsView = () => (
|
|
|
|
<>
|
2020-06-27 11:44:43 +02:00
|
|
|
<Accounting />
|
2020-04-12 18:27:01 +02:00
|
|
|
<BackupsView />
|
|
|
|
<MessagesView />
|
2020-06-07 20:51:50 +02:00
|
|
|
<Bakery />
|
2020-05-03 11:14:36 +02:00
|
|
|
<WalletVersion />
|
2020-04-12 18:27:01 +02:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
|
2020-05-26 07:03:33 +02:00
|
|
|
const Wrapped = () => (
|
|
|
|
<GridWrapper>
|
|
|
|
<ToolsView />
|
|
|
|
</GridWrapper>
|
|
|
|
);
|
|
|
|
|
2020-08-03 16:31:20 +02:00
|
|
|
export default Wrapped;
|
|
|
|
|
|
|
|
export async function getServerSideProps(context: NextPageContext) {
|
2020-08-09 23:16:44 +02:00
|
|
|
return await getProps(context);
|
2020-08-03 16:31:20 +02:00
|
|
|
}
|