Web: Components: input-block: Fix icons displaying & added search.react icon.
This commit is contained in:
parent
d280a6dca7
commit
200049ccee
@ -10,7 +10,7 @@ import {
|
||||
StyledIconBlock,
|
||||
} from "./styled-input-block";
|
||||
|
||||
const iconNames = Object.keys(Icons);
|
||||
//const iconNames = Object.keys(Icons);
|
||||
|
||||
class InputBlock extends React.Component {
|
||||
constructor(props) {
|
||||
@ -116,7 +116,7 @@ class InputBlock extends React.Component {
|
||||
mask={mask}
|
||||
keepCharPositions={keepCharPositions}
|
||||
/>
|
||||
{iconNames.includes(iconName) && (
|
||||
{//iconNames.includes(iconName) && (
|
||||
<div className="append">
|
||||
<StyledIconBlock
|
||||
isDisabled={isDisabled}
|
||||
@ -135,7 +135,7 @@ class InputBlock extends React.Component {
|
||||
/>
|
||||
</StyledIconBlock>
|
||||
</div>
|
||||
)}
|
||||
}
|
||||
</StyledInputGroup>
|
||||
);
|
||||
}
|
||||
|
3
public/images/search.react.svg
Normal file
3
public/images/search.react.svg
Normal file
@ -0,0 +1,3 @@
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.5439 1.22742C13.5519 3.35708 14.2643 7.52226 12.1342 10.5302L15.231 13.591C15.2488 13.6077 15.2651 13.624 15.2819 13.6418C15.8127 14.2011 15.7903 15.085 15.231 15.6158C14.6717 16.1471 13.7878 16.1247 13.2566 15.5654L10.0819 12.4202C7.81735 13.7576 4.97881 13.6405 2.83185 12.1205C-0.176644 9.99084 -0.888566 5.82617 1.24109 2.81818C3.37076 -0.190316 7.53593 -0.902238 10.5439 1.22742ZM2.37792 6.68418C2.37945 9.06115 4.30657 10.9868 6.68355 10.9862H6.6866C9.0646 10.9822 10.9892 9.052 10.9851 6.67451C10.9805 4.30059 9.05442 2.37804 6.68049 2.37906C4.30301 2.38008 2.37741 4.3072 2.37792 6.68418Z" fill="#D0D5DA"/>
|
||||
</svg>
|
After Width: | Height: | Size: 770 B |
Loading…
Reference in New Issue
Block a user