1
- import React , { useState , useContext } from "react" ;
1
+ import React , { useState } from "react" ;
2
2
import { useWindowSize } from "react-use" ;
3
3
import { useDebouncedCallback } from "use-debounce" ;
4
4
import { capitalize } from "lodash" ;
5
- import { Select , Option , Input , NavigationContext } from "@features/ui" ;
5
+ import { Select , Option , Input } from "@features/ui" ;
6
6
import { IssueFilters , IssueLevel , IssueStatus } from "@api/issues.types" ;
7
7
import { useFilters } from "../../hooks/use-filters" ;
8
8
import * as S from "./filters.styled" ;
@@ -32,7 +32,6 @@ export function Filters() {
32
32
33
33
const { width } = useWindowSize ( ) ;
34
34
const isMobileScreen = width <= 1023 ;
35
- const { isMobileMenuOpen } = useContext ( NavigationContext ) ;
36
35
37
36
const handleChange = ( project : string ) => {
38
37
setInputValue ( project ) ;
@@ -62,11 +61,6 @@ export function Filters() {
62
61
placeholder = "Status"
63
62
defaultValue = { getStatusDefaultValue ( filters ) }
64
63
width = { isMobileScreen ? "97%" : "8rem" }
65
- style = { {
66
- ...( isMobileMenuOpen && {
67
- opacity : 0 ,
68
- } ) ,
69
- } }
70
64
>
71
65
< Option value = { undefined } handleCallback = { handleStatus } >
72
66
--None--
@@ -83,11 +77,6 @@ export function Filters() {
83
77
placeholder = "Level"
84
78
defaultValue = { getLevelDefaultValue ( filters ) }
85
79
width = { isMobileScreen ? "97%" : "8rem" }
86
- style = { {
87
- ...( isMobileMenuOpen && {
88
- opacity : 0 ,
89
- } ) ,
90
- } }
91
80
>
92
81
< Option value = { undefined } handleCallback = { handleLevel } >
93
82
--None--
@@ -109,12 +98,6 @@ export function Filters() {
109
98
label = "project name"
110
99
placeholder = "Project Name"
111
100
iconSrc = "/icons/search-icon.svg"
112
- style = { {
113
- ...( isMobileScreen && { width : "94%" , marginRight : "3rem" } ) ,
114
- ...( isMobileMenuOpen && {
115
- opacity : 0 ,
116
- } ) ,
117
- } }
118
101
/>
119
102
</ S . Container >
120
103
) ;
0 commit comments