diff --git a/FE/src/components/DropdownIndicator/DropdownIndicator.tsx b/FE/src/components/DropdownIndicator/DropdownIndicator.tsx index bdde9052e..1ef85a102 100644 --- a/FE/src/components/DropdownIndicator/DropdownIndicator.tsx +++ b/FE/src/components/DropdownIndicator/DropdownIndicator.tsx @@ -1,7 +1,4 @@ import { styled } from "styled-components"; -import DropdownPanel from "../DropdownPanel/DropdownPanel"; -import { useEffect, useState } from "react"; -import { AssigneesProps } from "../../type"; type Props = { icon?: string; @@ -9,7 +6,6 @@ type Props = { padding?: string; width?: string; height?: string; - hasDropdown?: boolean; }; export default function DropdownIndicator({ @@ -18,51 +14,11 @@ export default function DropdownIndicator({ padding = "4px 0px", width = "80px", height = "32px", - hasDropdown = false, }: Props) { - const [isOpen, setIsOpen] = useState(false); - const [assigneesData, setAssigneesData] = useState(); - - const openDropdown = () => { - setIsOpen(true); - }; - - const closeDropdown = () => { - setIsOpen(false); - }; - - useEffect(() => { - const fetchData = async () => { - try { - const response = await fetch( - "http://3.34.141.196/api/issues/assignees", - ); - const data = await response.json(); - setAssigneesData(data); - } catch (error) { - console.log("error"); - } - }; - - fetchData(); - }, []); - return ( - + {label} - {hasDropdown && isOpen && ( - - )} ); }