This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #949 from WebDevStudios/hotfix/383-update-todos
Hotfix/383 update todos
- Loading branch information
Showing
6 changed files
with
116 additions
and
101 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import Link from 'next/link' | ||
|
||
/** | ||
* Renders an anchor to exit Preview Mode. | ||
* | ||
* @param {object} props The component as props. | ||
* @param {object} props.preview Checks if a preview exists. | ||
* @return {Element | null} The ExitPreview component. | ||
*/ | ||
export default function ExitPreview({preview}) { | ||
if (preview) { | ||
return ( | ||
<p> | ||
This page is a preview. | ||
<Link href="/api/exit-preview"> | ||
<a>Exit preview mode</a> | ||
</Link> | ||
</p> | ||
) | ||
} | ||
|
||
return null | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {default} from './ExitPreview.js' |
This file contains 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
Oops, something went wrong.
ce6f329
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: