Browse Source

Merge pull request #100 from shanghaikid/feat/change-collection-tab-order

change collection tab order, structure as the first one
nameczz 4 years ago
parent
commit
7a8d12d426
1 changed files with 7 additions and 8 deletions
  1. 7 8
      client/src/pages/collections/Collection.tsx

+ 7 - 8
client/src/pages/collections/Collection.tsx

@@ -15,10 +15,9 @@ enum TAB_EMUM {
 }
 
 const Collection = () => {
-  const { collectionName = '' } =
-    useParams<{
-      collectionName: string;
-    }>();
+  const { collectionName = '' } = useParams<{
+    collectionName: string;
+  }>();
 
   useNavigationHook(ALL_ROUTER_TYPES.COLLECTION_DETAIL, { collectionName });
 
@@ -40,14 +39,14 @@ const Collection = () => {
   };
 
   const tabs: ITab[] = [
-    {
-      label: collectionTrans('partitionTab'),
-      component: <Partitions collectionName={collectionName} />,
-    },
     {
       label: collectionTrans('structureTab'),
       component: <Structure collectionName={collectionName} />,
     },
+    {
+      label: collectionTrans('partitionTab'),
+      component: <Partitions collectionName={collectionName} />,
+    },
   ];
 
   return (