瀏覽代碼

remove use of useAuthState (#3955)

ianedwards 2 年之前
父節點
當前提交
8df54bdd6d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      dashboard/src/main/home/add-on-dashboard/AddOnDashboard.tsx

+ 1 - 1
dashboard/src/main/home/add-on-dashboard/AddOnDashboard.tsx

@@ -61,7 +61,7 @@ const templateBlacklist = [
 const AddOnDashboard: React.FC<Props> = ({
 }) => {
 
-  const { currentProject, currentCluster } = useAuthState();
+  const { currentProject, currentCluster } = useContext(Context);
   const [addOns, setAddOns] = useState([]);
   const [searchValue, setSearchValue] = useState("");
   const [view, setView] = useState("grid");