claude/fix-react-components-mintlify-SCkxL#27
Merged
bryanfawcett merged 2 commits intomainfrom Jan 14, 2026
Merged
Conversation
Mintlify requires arrow function syntax and named exports for JSX snippets.
This commit fixes all custom React components to work with Mintlify:
- Convert all components from `export default function` to `export const Component = () =>`
- Update all MDX imports to use named imports: `import { Component } from '/snippets/Component.jsx'`
- Update snippets/index.js to use named re-exports
- Remove invalid import from heritage/unesco-world-heritage.mdx (Card/CardGroup are built-in)
- Update CLAUDE.md documentation with correct component syntax conventions
Components fixed:
- LocationMap.jsx
- ExpertDirectory.jsx
- BusinessDirectory.jsx
- BusinessForm.jsx
- ExpertFormSupabase.jsx
- ExpertFormFormspree.jsx
- TestComponent.jsx
Mintlify uses <Accordion> inside <AccordionGroup>, not <AccordionItem>. Fixed 10 files that were using the invalid component name: - adventure/activities-and-experiences.mdx - adventure/hiking-and-trekking.mdx - adventure/water-sports.mdx - get-involved/travel-enthusiast-community.mdx - planning/couples-travel.mdx - planning/sample-itineraries.mdx - planning/solo-travel.mdx - wildlife/animals-and-birds.mdx - wildlife/conservation-efforts.mdx - wildlife/national-parks-and-reserves.mdx This was causing accordions to fail/be empty in production.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.