Skip to content

Commit

Permalink
fix: add proper DOM nesting for Remix example preview banner.
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-schmidt committed Dec 9, 2024
1 parent 34fa562 commit 886ad4e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/remix/app/components/preview-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import React from 'react';

export function PreviewBanner() {
return (
<p>
You&apos;re in <strong>preview mode</strong> (DRAFT content from Contentful served)
<>
<p>You're in <strong>preview mode</strong> (DRAFT content from Contentful served)</p>
<form action="/api/exit-preview" method="post">
<button type="submit">Exit Preview Mode</button>
</form>
</p>
</>
);
}

0 comments on commit 886ad4e

Please sign in to comment.