export tabs list from /
This commit is contained in:
parent
e5e4ca5857
commit
67749c1ed5
@ -11,7 +11,7 @@ import { dehydrate, QueryClient } from '@tanstack/react-query';
|
|||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
import { useContext, useEffect } from 'react';
|
import { useContext, useEffect } from 'react';
|
||||||
|
|
||||||
const tabs = [
|
export const tabs = [
|
||||||
{
|
{
|
||||||
Component: () => <Calculation.Settings />,
|
Component: () => <Calculation.Settings />,
|
||||||
key: 'settings',
|
key: 'settings',
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
import { tabs } from '.';
|
||||||
import initializeApollo from '@/apollo/client';
|
import initializeApollo from '@/apollo/client';
|
||||||
import * as Calculation from '@/Components/Calculation';
|
import * as Calculation from '@/Components/Calculation';
|
||||||
import { Error } from '@/Components/Common/Error';
|
import { Error } from '@/Components/Common/Error';
|
||||||
@ -11,25 +12,6 @@ import { dehydrate, QueryClient } from '@tanstack/react-query';
|
|||||||
import Head from 'next/head';
|
import Head from 'next/head';
|
||||||
import { useContext, useEffect } from 'react';
|
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() {
|
function Content() {
|
||||||
hooks.useSentryScope();
|
hooks.useSentryScope();
|
||||||
hooks.useMainData();
|
hooks.useMainData();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user