Skip to content

Commit

Permalink
remove filter box
Browse files Browse the repository at this point in the history
  • Loading branch information
amunger committed Mar 1, 2024
1 parent 48073e2 commit e5381ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ import { IIconProps, SearchBox } from '@fluentui/react';

import './reactSlickGridFilterBox.css';

const filterIcon: IIconProps = {
iconName: 'Filter',
styles: {
root: {
fontSize: 'var(--vscode-font-size)',
width: 'var(--vscode-font-size)',
color: 'var(--vscode-settings-textInputForeground)'
}
}
};

const styles = {

Check failure on line 10 in src/webviews/webview-side/data-explorer/reactSlickGridFilterBox.tsx

View workflow job for this annotation

GitHub Actions / Smoke tests (ubuntu-latest, 3.10)

'styles' is declared but its value is never read.

Check failure on line 10 in src/webviews/webview-side/data-explorer/reactSlickGridFilterBox.tsx

View workflow job for this annotation

GitHub Actions / Smoke tests (windows-latest, 3.10)

'styles' is declared but its value is never read.

Check failure on line 10 in src/webviews/webview-side/data-explorer/reactSlickGridFilterBox.tsx

View workflow job for this annotation

GitHub Actions / Smoke tests (macos-latest, 3.10)

'styles' is declared but its value is never read.
iconContainer: {
Expand All @@ -42,23 +32,16 @@ interface IFilterProps {
export class ReactSlickGridFilterBox extends React.Component<IFilterProps> {
public override render() {
return (
<SearchBox
iconProps={filterIcon}
<input
onChange={this.updateInputValue}
onClear={this.clearInputValue}
tabIndex={0}
ariaLabel={this.props.column.name}
aria-label={this.props.column.name}
className="filter-box"
styles={styles}
value={this.props.filter}
/>
);
}

private clearInputValue = () => {
this.props.onChange('', this.props.column);
};

private updateInputValue = (
_event?: React.ChangeEvent<HTMLInputElement> | undefined,
newValue?: string | undefined
Expand Down
4 changes: 2 additions & 2 deletions src/webviews/webview-side/interactive-common/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ html {
}

#main-panel {
background: var(--vscode-editor-background);
color: var(--vscode-editor-foreground);
background: rgb(49, 49, 93);
color: gray;
display: grid;
grid-template-rows: auto auto auto 1fr auto;
grid-template-columns: 1fr;
Expand Down

0 comments on commit e5381ad

Please sign in to comment.