From ab36d448b06d84b2c98cabf9ab0c3ec9385006f9 Mon Sep 17 00:00:00 2001 From: mahdi andalib Date: Sun, 10 Apr 2022 14:10:59 +0430 Subject: [PATCH] update --- src/components/SelectYear/index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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={() => {