Просмотр исходного кода

chore: remove unused variables in ProjectButton.tsx (#3468)

jose-fully-ported 2 лет назад
Родитель
Сommit
a1a8536627
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      dashboard/src/main/home/sidebar/ProjectButton.tsx

+ 2 - 2
dashboard/src/main/home/sidebar/ProjectButton.tsx

@@ -22,7 +22,7 @@ const ProjectButton: React.FC<PropsType> = (props) => {
   const context = useContext(Context);
   const [showGHAModal, setShowGHAModal] = useState<boolean>(false);
 
-  const { setCurrentProject, setCurrentCluster, user } = context;
+  const { user } = context;
 
   useEffect(() => {
     document.addEventListener("mousedown", handleClickOutside);
@@ -263,4 +263,4 @@ const RefreshButton = styled.div`
     justify-content: center;
     height: 15px;
   }
-`;
+`;