diff --git a/src/hooks/useBreakpoint.js b/src/hooks/useBreakpoint.js index 83aa4dc..8629b18 100644 --- a/src/hooks/useBreakpoint.js +++ b/src/hooks/useBreakpoint.js @@ -1,4 +1,3 @@ - import { useState, useEffect } from 'react'; import { debounce } from 'lodash'; @@ -55,10 +54,7 @@ export const useBreakpoint = () => { } const [size, setSize] = useState(() => resolveBreakpoint(window.innerWidth)); - - const setBreakpoint = () => { - setSize(resolveBreakpoint(window.innerWidth)); - }; + const setBreakpoint = () => setSize(resolveBreakpoint(window.innerWidth)); useEffect(() => { const calcInnerWidth = debounce(setBreakpoint, 200); diff --git a/src/pages/apply.js b/src/pages/apply.js index 5e556c7..202c0a9 100644 --- a/src/pages/apply.js +++ b/src/pages/apply.js @@ -36,7 +36,7 @@ export default function apply() {