export tabs list from /

This commit is contained in:
vchikalkin 2024-06-19 15:01:56 +03:00
parent e5e4ca5857
commit 67749c1ed5
2 changed files with 2 additions and 20 deletions

View File

@ -11,7 +11,7 @@ import { dehydrate, QueryClient } from '@tanstack/react-query';
import Head from 'next/head';
import { useContext, useEffect } from 'react';
const tabs = [
export const tabs = [
{
Component: () => <Calculation.Settings />,
key: 'settings',

View File

@ -1,3 +1,4 @@
import { tabs } from '.';
import initializeApollo from '@/apollo/client';
import * as Calculation from '@/Components/Calculation';
import { Error } from '@/Components/Common/Error';
@ -11,25 +12,6 @@ import { dehydrate, QueryClient } from '@tanstack/react-query';
import Head from 'next/head';
import { useContext, useEffect } from 'react';
const tabs = [
{
Component: () => <Calculation.Settings />,
key: 'settings',
title: 'Расчет',
},
{
Component: () => <Calculation.Form />,
key: 'form',
title: 'Параметры',
},
{
Component: () => <Calculation.Output />,
key: 'output',
title: 'Результаты',
},
];
function Content() {
hooks.useSentryScope();
hooks.useMainData();