Skip to content

Commit

Permalink
Merge pull request #8 from geovisto/bp-new-pages
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
avi278 committed May 9, 2024
2 parents fd53752 + d35c347 commit 01bda73
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
22 changes: 12 additions & 10 deletions src/geovisto_demos/playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,23 @@ const Playground = () => {
}
} catch(ex) {
alert("unable to read file");
return
}
};

reader.onload = onLoadAction;
reader.onloadend = () => {
if (type == "config") {
setConfig(result);
}
if (type == "data") {
setData(result);
}
if (type == "geo") {
setGeo("Your geo", result);
}

if (result) {
if (type == "config") {
setConfig(result);
}
if (type == "data") {
setData(result);
}
if (type == "geo") {
setGeo("Your geo", result);
}
}
};
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const HomepageHeader = () => {
<Link to="/tutorials">
<Button variant="default" className="btn-header">Get started</Button>
</Link>
<Link to="/playground#playground-hook">
<Link to="/playground">
<Button variant="default" className="btn-header">Try Playground</Button>
</Link>
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ import Layout from "@theme/Layout";
import "./index.css";
import BrowserOnly from "@docusaurus/BrowserOnly";

/**
* Wrapper for Playground
*
* @author Iva Utikalova
*/

export const Home = (): JSX.Element => (
<Layout
title={`Playground`}
Expand Down
1 change: 1 addition & 0 deletions src/react/ReactGeovistoMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import "./common.css";
*
* @author Jiri Hynek
* @author Vladimir Korencik
* @author Iva Utikalova
*/


Expand Down

0 comments on commit 01bda73

Please sign in to comment.