diff --git a/src/components/SelectYear/index.js b/src/components/SelectYear/index.js index 8121f5d..4da8ceb 100644 --- a/src/components/SelectYear/index.js +++ b/src/components/SelectYear/index.js @@ -1,4 +1,4 @@ -import React, { useState, useRef } from "react"; +import React, { useState } from "react"; import ScrollContainer from "react-indiana-drag-scroll"; import "./index.scss"; @@ -10,12 +10,6 @@ import Month from "./Month.js"; const SelectYear = ({ items }) => { const [selectedYear, setSelectedYear] = useState(null); - const inputRef = useRef(); - - function focus() { - console.log(inputRef.current); - } - return (
@@ -36,7 +30,6 @@ const SelectYear = ({ items }) => {
{items.map((item, index) => (

setSelectedYear(item)} onClick={() => {