浏览代码

adding aura to the product overview grid (#299)

* adding aura to the product overview grid

* remove early return

* change order
MarkSackerberg 10 月之前
父节点
当前提交
cae8196af2
共有 3 个文件被更改,包括 25 次插入29 次删除
  1. 2 6
      src/components/products/GridAllProducts.jsx
  2. 4 4
      src/components/products/aura/index.js
  3. 19 19
      src/components/products/index.js

+ 2 - 6
src/components/products/GridAllProducts.jsx

@@ -1,15 +1,11 @@
-import { Grid } from './Grid'
-import { productCategories } from './index'
+import { Grid } from './Grid';
+import { productCategories } from './index';
 
 export function MarkdocGrid() {
   return (
     <div className="not-prose">
       {productCategories.map((item, index) => {
 
-        console.log(item)
-
-        if (item === 'Aura') return
-
         return (
           <>
             <h2 key={index} className="mb-4 mt-8 text-2xl font-bold">

+ 4 - 4
src/components/products/aura/index.js

@@ -1,13 +1,13 @@
-import { documentationSection } from '@/shared/sections'
-import { SparklesIcon } from '@heroicons/react/24/outline'
-import { Hero } from './Hero'
+import { documentationSection } from '@/shared/sections';
+import { SparklesIcon } from '@heroicons/react/24/outline';
+import { Hero } from './Hero';
 
 export const aura = {
   name: 'Aura',
   headline: 'Indexing and Data Availability Network',
   description:
     'A decentralized indexing and data availability network that extends Solana and the Solana Virtual Machine (SVM)',
-  navigationMenuCatergory: 'Utility',
+  navigationMenuCatergory: 'Aura',
   path: 'aura',
   icon: <SparklesIcon />,
   github: 'https://github.com/metaplex-foundation/aura/',

+ 19 - 19
src/components/products/index.js

@@ -1,23 +1,23 @@
-import { amman } from './amman'
-import { aura } from './aura'
-import { bubblegum } from './bubblegum'
-import { candyMachine } from './candyMachine'
-import { core } from './core'
-import { coreCandyMachine } from './coreCandyMachine'
-import { das } from './das-api'
-import { fusion } from './fusion'
-import { global } from './global'
-import { guides } from './guides'
-import { hydra } from './hydra'
-import { inscription } from './inscription'
-import { legacyDocumentation } from './legacyDocumentation'
-import { mplHybrid } from './mpl-hybrid'
-import { sugar } from './sugar'
-import { tokenAuthRules } from './tokenAuthRules'
-import { tokenMetadata } from './tokenMetadata'
-import { umi } from './umi'
+import { amman } from './amman';
+import { aura } from './aura';
+import { bubblegum } from './bubblegum';
+import { candyMachine } from './candyMachine';
+import { core } from './core';
+import { coreCandyMachine } from './coreCandyMachine';
+import { das } from './das-api';
+import { fusion } from './fusion';
+import { global } from './global';
+import { guides } from './guides';
+import { hydra } from './hydra';
+import { inscription } from './inscription';
+import { legacyDocumentation } from './legacyDocumentation';
+import { mplHybrid } from './mpl-hybrid';
+import { sugar } from './sugar';
+import { tokenAuthRules } from './tokenAuthRules';
+import { tokenMetadata } from './tokenMetadata';
+import { umi } from './umi';
 
-export const productCategories = ['MPL', 'Aura', 'Dev Tools']
+export const productCategories = ['Aura', 'MPL', 'Dev Tools']
 
 export const products = [
   global,