Skip to content

Commit 2f54358

Browse files
fix: restoring react imports needed for build docs process on searchfield
1 parent 84fd946 commit 2f54358

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

src/SearchField/SearchFieldAdvanced.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {
1+
// React import needed to support build-docs, if removed the build-docs will break
2+
import React, {
23
useRef, createContext, useState, useEffect,
34
} from 'react';
45
import PropTypes from 'prop-types';

src/SearchField/SearchFieldInput.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { useContext } from 'react';
1+
// React import needed to support build-docs, if removed the build-docs will break
2+
import React, { useContext } from 'react';
23
import PropTypes from 'prop-types';
34

45
import { FormControl } from '../Form';

src/SearchField/SearchFieldLabel.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { useContext } from 'react';
1+
// React import needed to support build-docs, if removed the build-docs will break
2+
import React, { useContext } from 'react';
23
import PropTypes from 'prop-types';
34
import classNames from 'classnames';
45

src/SearchField/SearchFieldSubmitButton.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { useContext } from 'react';
1+
// React import needed to support build-docs, if removed the build-docs will break
2+
import React, { useContext } from 'react';
23
import PropTypes from 'prop-types';
34

45
import { SearchFieldContext } from './SearchFieldAdvanced';

src/SearchField/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { useCallback } from 'react';
1+
// React import needed to support build-docs, if removed the build-docs will break
2+
import React, { useCallback } from 'react';
23
import PropTypes from 'prop-types';
34

45
import { Search, Close } from '../../icons';

0 commit comments

Comments
 (0)