diff --git a/apps/web/Components/Calculation/Form/index.jsx b/apps/web/Components/Calculation/Form/index.jsx
index 2fd28b9..fc2c0c0 100644
--- a/apps/web/Components/Calculation/Form/index.jsx
+++ b/apps/web/Components/Calculation/Form/index.jsx
@@ -8,6 +8,7 @@ import Payments from './Payments';
import SupplierAgent from './SupplierAgent';
import Unlimited from './Unlimited';
import Background from '@/Components/Layout/Background';
+import { useStore } from '@/stores/hooks';
import { min } from '@/styles/mq';
import styled from 'styled-components';
import { Tabs } from 'ui/elements';
@@ -44,19 +45,22 @@ const ComponentWrapper = styled.div`
}
`;
-export function Form({ prune }) {
+export function Form() {
+ const { $process } = useStore();
+
+ const filteredTabs =
+ $process.has('Unlimited') === false ? formTabs.filter((x) => x.id !== 'unlimited') : formTabs;
+
return (
- {formTabs
- .filter((tab) => !prune?.includes(tab.id))
- .map(({ Component, id, title }) => (
-
-
-
-
-
- ))}
+ {filteredTabs.map(({ Component, id, title }) => (
+
+
+
+
+
+ ))}
);
diff --git a/apps/web/pages/index.jsx b/apps/web/pages/index.jsx
index f5d93e1..08dd127 100644
--- a/apps/web/pages/index.jsx
+++ b/apps/web/pages/index.jsx
@@ -23,7 +23,7 @@ const tabs = [
title: 'Расчет',
},
{
- Component: () => ,
+ Component: () => ,
key: 'form',
title: 'Параметры',
},