Skip to content

claude/fix-react-components-mintlify-SCkxL#27

Merged
bryanfawcett merged 2 commits intomainfrom
claude/fix-react-components-mintlify-SCkxL
Jan 14, 2026
Merged

claude/fix-react-components-mintlify-SCkxL#27
bryanfawcett merged 2 commits intomainfrom
claude/fix-react-components-mintlify-SCkxL

Conversation

@bryanfawcett
Copy link
Copy Markdown
Collaborator

No description provided.

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.
@bryanfawcett bryanfawcett self-assigned this Jan 14, 2026
@bryanfawcett bryanfawcett merged commit 99d002d into main Jan 14, 2026
5 checks passed
@bryanfawcett bryanfawcett deleted the claude/fix-react-components-mintlify-SCkxL branch January 14, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants