Add search icon
Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7 Reviewed By: LukeDefeo Differential Revision: D49349828 fbshipit-source-id: 45a9917366236dda6c2409c30a4800cfe53dbd56
This commit is contained in:
committed by
Facebook GitHub Bot
parent
54a93c03aa
commit
d09dde724b
@@ -28,6 +28,7 @@ import {
|
||||
import {useLatestRef} from '../../utils/useLatestRef';
|
||||
import {useUpdateEffect} from 'react-use';
|
||||
import {theme} from '../theme';
|
||||
import {SearchOutlined} from '@ant-design/icons';
|
||||
|
||||
export {PowerSearchConfig, OperatorConfig, FieldConfig, SearchExpressionTerm};
|
||||
|
||||
@@ -97,6 +98,13 @@ export const PowerSearch: React.FC<PowerSearchProps> = ({
|
||||
return (
|
||||
<PowerSearchContainer>
|
||||
<Space size={[theme.space.tiny, 0]}>
|
||||
<SearchOutlined
|
||||
style={{
|
||||
marginLeft: theme.space.tiny,
|
||||
marginRight: theme.space.tiny,
|
||||
color: theme.textColorSecondary,
|
||||
}}
|
||||
/>
|
||||
{searchExpression.map((searchTerm, i) => {
|
||||
const isLastTerm = i === searchExpression.length - 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user