mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-28 14:08:21 +02:00
docs: add default value for BrowserWindow URL field (#6207)
* docs: fix BrowserWindow URL field * fix
This commit is contained in:
parent
c8fad02029
commit
6a772828c5
7 changed files with 56 additions and 29 deletions
|
@ -15,7 +15,11 @@ interface Props {
|
|||
url: string;
|
||||
}
|
||||
|
||||
function BrowserWindow({children, minHeight, url}: Props): JSX.Element {
|
||||
function BrowserWindow({
|
||||
children,
|
||||
minHeight,
|
||||
url = 'http://localhost:3000',
|
||||
}: Props): JSX.Element {
|
||||
return (
|
||||
<div className={styles.browserWindow} style={{minHeight}}>
|
||||
<div className={styles.browserWindowHeader}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue