diff --git a/sites/reactflow.dev/src/pages/learn/advanced-use/_meta.tsx b/sites/reactflow.dev/src/pages/learn/advanced-use/_meta.tsx index 2b26d2649..69405f081 100644 --- a/sites/reactflow.dev/src/pages/learn/advanced-use/_meta.tsx +++ b/sites/reactflow.dev/src/pages/learn/advanced-use/_meta.tsx @@ -1,6 +1,5 @@ -import { getMetaConfigFromTitleLookup } from 'xy-shared'; -const titleLookup = { +export default { accessibility: 'Accessibility', testing: 'Testing', typescript: 'TypeScript', @@ -11,4 +10,4 @@ const titleLookup = { 'devtools-and-debugging': 'Devtools', }; -export default getMetaConfigFromTitleLookup(titleLookup, '/learn/advanced-use'); + diff --git a/sites/reactflow.dev/src/pages/learn/concepts/_meta.tsx b/sites/reactflow.dev/src/pages/learn/concepts/_meta.tsx index a59d88ffc..0277d6c6b 100644 --- a/sites/reactflow.dev/src/pages/learn/concepts/_meta.tsx +++ b/sites/reactflow.dev/src/pages/learn/concepts/_meta.tsx @@ -1,6 +1,5 @@ -import { getMetaConfigFromTitleLookup } from 'xy-shared'; -const titleLookup = { +export default { introduction: 'Introduction', 'terms-and-definitions': 'Terms and Definitions', 'core-concepts': 'Core Concepts', @@ -8,4 +7,4 @@ const titleLookup = { 'built-in-components': 'Built-In Components', }; -export default getMetaConfigFromTitleLookup(titleLookup, '/learn/concepts'); + diff --git a/sites/reactflow.dev/src/pages/learn/customization/_meta.tsx b/sites/reactflow.dev/src/pages/learn/customization/_meta.tsx index fc2be5982..093df89b8 100644 --- a/sites/reactflow.dev/src/pages/learn/customization/_meta.tsx +++ b/sites/reactflow.dev/src/pages/learn/customization/_meta.tsx @@ -1,6 +1,6 @@ -import { getMetaConfigFromTitleLookup } from 'xy-shared'; -const titleLookup = { + +export default { 'custom-nodes': { title: 'Custom Nodes', theme: { @@ -29,7 +29,4 @@ const titleLookup = { }, }; -export default getMetaConfigFromTitleLookup( - titleLookup, - '/learn/customization', -); + diff --git a/sites/reactflow.dev/src/pages/learn/getting-started/_meta.tsx b/sites/reactflow.dev/src/pages/learn/getting-started/_meta.tsx index f36a2f4ef..48dde9630 100644 --- a/sites/reactflow.dev/src/pages/learn/getting-started/_meta.tsx +++ b/sites/reactflow.dev/src/pages/learn/getting-started/_meta.tsx @@ -1,12 +1,7 @@ -import { getMetaConfigFromTitleLookup } from 'xy-shared'; -const titleLookup = { +export default { 'installation-and-requirements': 'Installation', 'building-a-flow': 'Building a Flow', 'adding-interactivity': 'Adding Interactivity', }; -export default getMetaConfigFromTitleLookup( - titleLookup, - '/learn/getting-started', -); diff --git a/sites/reactflow.dev/src/pages/learn/layouting/_meta.tsx b/sites/reactflow.dev/src/pages/learn/layouting/_meta.tsx index 9d4c3129c..d10730dc9 100644 --- a/sites/reactflow.dev/src/pages/learn/layouting/_meta.tsx +++ b/sites/reactflow.dev/src/pages/learn/layouting/_meta.tsx @@ -1,8 +1,7 @@ -import { getMetaConfigFromTitleLookup } from 'xy-shared'; -const titleLookup = { +export default { layouting: 'Layouting Libraries', 'sub-flows': 'Sub-Flows', }; -export default getMetaConfigFromTitleLookup(titleLookup, '/learn/layouting'); + diff --git a/sites/reactflow.dev/src/pages/learn/troubleshooting/_meta.tsx b/sites/reactflow.dev/src/pages/learn/troubleshooting/_meta.tsx index 8d8214cb2..9d5fa28e6 100644 --- a/sites/reactflow.dev/src/pages/learn/troubleshooting/_meta.tsx +++ b/sites/reactflow.dev/src/pages/learn/troubleshooting/_meta.tsx @@ -1,6 +1,6 @@ -import { getMetaConfigFromTitleLookup } from 'xy-shared'; -const titleLookup = { + +export default { index: 'Common Errors', 'remove-attribution': 'Remove Attribution', 'migrate-to-v12': 'Migrate to v12', @@ -13,7 +13,3 @@ const titleLookup = { }, }; -export default getMetaConfigFromTitleLookup( - titleLookup, - '/learn/troubleshooting', -);