Skip to content

Commit

Permalink
fix: remove old styles from Filter
Browse files Browse the repository at this point in the history
  • Loading branch information
teunlao committed Sep 27, 2023
1 parent 13e38b1 commit 9170a7b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions webapp/packages/core-blocks/src/FormControls/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
*/
import { observer } from 'mobx-react-lite';
import { useCallback, useEffect, useState } from 'react';
import styled from 'reshadow';

import type { ComponentStyle } from '@cloudbeaver/core-theming';

import { IconButton } from '../IconButton';
import { s } from '../s';
import { useFocus } from '../useFocus';
import { useS } from '../useS';
import { useStyles } from '../useStyles';
import filterStyle from './Filter.m.css';
import { InputField } from './InputField';

Expand Down Expand Up @@ -54,7 +52,6 @@ export const Filter = observer<ControlledProps | ObjectsProps<any, any>>(functio
disabled,
max,
className,
style: propStyle,
onFilter,
onToggle,
onKeyDown,
Expand Down Expand Up @@ -107,12 +104,11 @@ export const Filter = observer<ControlledProps | ObjectsProps<any, any>>(functio
value = state[name];
}

return styled(useStyles(propStyle))(
return (
<div className={s(styles, { filterContainer: true })} onClick={onClick}>
<InputField
className={s(styles, { inputField: true, max, toggled })}
className={s(styles, { inputField: true, max, toggled }, className)}
ref={inputRef}
style={propStyle}
placeholder={placeholder}
disabled={disabled}
name={name}
Expand All @@ -130,6 +126,6 @@ export const Filter = observer<ControlledProps | ObjectsProps<any, any>>(functio
) : (
<IconButton className={s(styles, { iconButton: true, toggled, toggleMode })} name="search" disabled={disabled} onClick={toggle} />
)}
</div>,
</div>
);
});

0 comments on commit 9170a7b

Please sign in to comment.