ソースを参照

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

jose-fully-ported 2 年 前
コミット
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 context = useContext(Context);
   const [showGHAModal, setShowGHAModal] = useState<boolean>(false);
   const [showGHAModal, setShowGHAModal] = useState<boolean>(false);
 
 
-  const { setCurrentProject, setCurrentCluster, user } = context;
+  const { user } = context;
 
 
   useEffect(() => {
   useEffect(() => {
     document.addEventListener("mousedown", handleClickOutside);
     document.addEventListener("mousedown", handleClickOutside);
@@ -263,4 +263,4 @@ const RefreshButton = styled.div`
     justify-content: center;
     justify-content: center;
     height: 15px;
     height: 15px;
   }
   }
-`;
+`;