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

Add sortBy property on stack list

jnfrati 3 лет назад
Родитель
Сommit
f0f1def977
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      dashboard/src/main/home/cluster-dashboard/stacks/_StackList.tsx

+ 7 - 1
dashboard/src/main/home/cluster-dashboard/stacks/_StackList.tsx

@@ -19,7 +19,13 @@ import {
 } from "./components/styles";
 import { getStackStatus, getStackStatusMessage } from "./shared";
 
-const StackList = ({ namespace }: { namespace: string }) => {
+const StackList = ({
+  namespace,
+  sortBy,
+}: {
+  namespace: string;
+  sortBy: "created_by" | "updated_at" | "alphabetical";
+}) => {
   const { currentProject, currentCluster, setCurrentError } = useContext(
     Context
   );