We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 751707f commit 2a1df89Copy full SHA for 2a1df89
1 file changed
components/JottingsControls/jottingsControl.js
@@ -16,22 +16,6 @@ export default function JottingsControl(props) {
16
const [labels, setLabels] = useState(null);
17
18
const router = useRouter();
19
- const [matches, setMatches] = useState(
20
- window.matchMedia("(min-width: 800px)").matches
21
- )
22
-
23
- useEffect(() => {
24
25
- const handleResize = e => {
26
- setMatches(e.matches);
27
- };
28
29
- window
30
- .matchMedia("(min-width: 800px)")
31
- .addEventListener('change', handleResize);
32
33
- return () => { removeEventListener('change', handleResize); };
34
- }, []);
35
36
const getJotsToShow = (response, jotType) => {
37
if (
0 commit comments