Skip to content

Commit

Permalink
fixup! feat: export InnerForm
Browse files Browse the repository at this point in the history
  • Loading branch information
niktverd committed Jan 11, 2024
1 parent 0e47a9c commit 1d84f63
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/blocks/Form/Form.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {useCallback, useContext, useState} from 'react';

import {BackgroundImage, Title} from '../../components';
import InnerForm from '../../components/InnerForm/InnerForm';
import {MobileContext} from '../../context/mobileContext';
import {Col, Grid, GridAlignItems, GridColumnSize, Row} from '../../grid';
import type {FormBlockProps} from '../../models';
Expand All @@ -13,8 +14,6 @@ import {
import {Content} from '../../sub-blocks';
import {block} from '../../utils';

import InnerForm from './InnerForm/InnerForm';

import './Form.scss';

const b = block('form-block');
Expand Down
1 change: 0 additions & 1 deletion src/blocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ export {default as ContentLayoutBlock} from './ContentLayout/ContentLayout';
export {default as ShareBlock} from './Share/Share';
export {default as FilterBlock} from './FilterBlock/FilterBlock';
export {default as FormBlock} from './Form/Form';
export {default as InnerForm} from './Form/InnerForm/InnerForm';
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, {useEffect} from 'react';

import {YandexForm} from '../../../components';
import {FormBlockData, isHubspotDataForm, isYandexDataForm} from '../../../models';
import {HubspotForm} from '../../../sub-blocks';
import {YandexForm} from '..';
import {FormBlockData, isHubspotDataForm, isYandexDataForm} from '../../models';
import {HubspotForm} from '../../sub-blocks';

interface InnerFormProps {
formData: FormBlockData;
Expand Down
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export {default as HTML} from './HTML/HTML';
export {default as MetaInfo} from './MetaInfo/MetaInfo';
export {default as FullscreenMedia} from './FullscreenMedia/FullscreenMedia';
export {default as ContentList} from './ContentList/ContentList';
export {default as InnerForm} from './InnerForm/InnerForm';

export type {RouterLinkProps} from './RouterLink/RouterLink';
export type {ImageBaseProps} from './ImageBase/ImageBase';

0 comments on commit 1d84f63

Please sign in to comment.