Skip to content

Commit

Permalink
Add docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeyer2115 committed Sep 21, 2023
1 parent fe59483 commit 62e427a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/studio-ui/src/components/OpenLivePreviewButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import classNames from "classnames";
import { Result } from "true-myth";
import { useCallback } from "react";

//
// The URL of the Landing Page of the PagesJS Dev Server. Port 5173 is hardcoded for now as it will be the PagesJS Dev port in most cases.
export const PAGES_JS_LANDING_PAGE = "http://localhost:5173";

/**
* OpenLivePreviewButton is a button that when clicked, opens the
* pages development server index page in a new tab.
* Port 5173 hardcoded for now as it will be the pages dev port in most cases
* The button rendered by this Component opens a PagesJS-powered Preview of the current Page in a new tab.
* If the Page is an Entity Template, the Preview will use the currently selected Entity Data.
*/
export default function OpenLivePreviewButton(): JSX.Element {
let previewDisabled;
Expand Down

0 comments on commit 62e427a

Please sign in to comment.