Skip to content
Snippets Groups Projects
Commit 3258651e authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

Hello36

parent 6db94fab
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,10 @@ import { useEffect} from "react";
import Villbuttonrow from "../components/Villagebuttons.tsx";
/* import Sidebar from "../components/Sidebar.tsx"; */
import "../utils/highlight.js";
"../statics/mapscript.js"
const App = () => {
useEffect(() => {
/* useEffect(() => {
const script = document.createElement('script');
script.src = "../statics/mapscript.js";
script.async = true;
......@@ -22,7 +23,7 @@ const App = () => {
return () => {
document.body.removeChild(script);
}
}, []);
}, []); */
const pathMapping = getPathMapping();
const currentPath =
location.pathname
......
import InnerHTML from 'dangerously-set-html-content'
/* import { useEffect } from 'react' */
export function Map1(){
const htmlFile = `<div style="min-height: 374px">
<script type="text/javascript" defer src="src/statics/mapscript.js" charset="utf-8">
......
......@@ -11,7 +11,7 @@ export function Home() {
<hr/>
<Map1/>
<hr />
Hello35
Hello36
</div>
</div>
<div className="row">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment