Skip to content

Commit

Permalink
fixing issue xyflow#601
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjanaSogimatt committed Jan 4, 2025
1 parent 817a8fe commit 0d1292f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 27 deletions.
5 changes: 2 additions & 3 deletions sites/reactflow.dev/src/pages/learn/advanced-use/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { getMetaConfigFromTitleLookup } from 'xy-shared';

const titleLookup = {
export default {
accessibility: 'Accessibility',
testing: 'Testing',
typescript: 'TypeScript',
Expand All @@ -11,4 +10,4 @@ const titleLookup = {
'devtools-and-debugging': 'Devtools',
};

export default getMetaConfigFromTitleLookup(titleLookup, '/learn/advanced-use');

5 changes: 2 additions & 3 deletions sites/reactflow.dev/src/pages/learn/concepts/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { getMetaConfigFromTitleLookup } from 'xy-shared';

const titleLookup = {
export default {
introduction: 'Introduction',
'terms-and-definitions': 'Terms and Definitions',
'core-concepts': 'Core Concepts',
'the-viewport': 'The Viewport',
'built-in-components': 'Built-In Components',
};

export default getMetaConfigFromTitleLookup(titleLookup, '/learn/concepts');

9 changes: 3 additions & 6 deletions sites/reactflow.dev/src/pages/learn/customization/_meta.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getMetaConfigFromTitleLookup } from 'xy-shared';

const titleLookup = {

export default {
'custom-nodes': {
title: 'Custom Nodes',
theme: {
Expand Down Expand Up @@ -29,7 +29,4 @@ const titleLookup = {
},
};

export default getMetaConfigFromTitleLookup(
titleLookup,
'/learn/customization',
);

Original file line number Diff line number Diff line change
@@ -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',
);
5 changes: 2 additions & 3 deletions sites/reactflow.dev/src/pages/learn/layouting/_meta.tsx
Original file line number Diff line number Diff line change
@@ -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');

8 changes: 2 additions & 6 deletions sites/reactflow.dev/src/pages/learn/troubleshooting/_meta.tsx
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -13,7 +13,3 @@ const titleLookup = {
},
};

export default getMetaConfigFromTitleLookup(
titleLookup,
'/learn/troubleshooting',
);

0 comments on commit 0d1292f

Please sign in to comment.