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

now? Hello35

parent e5c2a40f
No related branches found
No related tags found
No related merge requests found
Pipeline #390061 passed
This diff is collapsed.
...@@ -14,7 +14,15 @@ import Villbuttonrow from "../components/Villagebuttons.tsx"; ...@@ -14,7 +14,15 @@ import Villbuttonrow from "../components/Villagebuttons.tsx";
import "../utils/highlight.js"; import "../utils/highlight.js";
const App = () => { const App = () => {
useEffect(() => {
const script = document.createElement('script');
script.src = "../statics/mapscript.js";
script.async = true;
document.body.appendChild(script);
return () => {
document.body.removeChild(script);
}
}, []);
const pathMapping = getPathMapping(); const pathMapping = getPathMapping();
const currentPath = const currentPath =
location.pathname location.pathname
...@@ -29,10 +37,7 @@ const App = () => { ...@@ -29,10 +37,7 @@ const App = () => {
document.title = `${title || ""} | ${import.meta.env.VITE_TEAM_NAME} - iGEM ${import.meta.env.VITE_TEAM_YEAR}`; document.title = `${title || ""} | ${import.meta.env.VITE_TEAM_NAME} - iGEM ${import.meta.env.VITE_TEAM_YEAR}`;
}, [title]); }, [title]);
const script = document.createElement("script");
script.src = "src/statics/mapscript.js";
script.async = true;
document.body.appendChild(script);
return ( return (
<> <>
{/* Navigation */} {/* Navigation */}
...@@ -101,3 +106,4 @@ const App = () => { ...@@ -101,3 +106,4 @@ const App = () => {
}; };
export default App; export default App;
...@@ -11,11 +11,11 @@ export function Home() { ...@@ -11,11 +11,11 @@ export function Home() {
<hr/> <hr/>
<Map1/> <Map1/>
<hr /> <hr />
Hello34 Hello35
</div> </div>
</div> </div>
<div className="row"> <div className="row">
</div> </div>
</> </>
); );
......
...@@ -987,7 +987,7 @@ ...@@ -987,7 +987,7 @@
"@types/prop-types@*": "@types/prop-types@*":
version "15.7.12" version "15.7.12"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.12.tgz#12bb1e2be27293c1406acb6af1c3f3a1481d98c6" resolved "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz"
integrity sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q== integrity sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==
"@types/react-dom@^18.2.22": "@types/react-dom@^18.2.22":
...@@ -997,9 +997,16 @@ ...@@ -997,9 +997,16 @@
dependencies: dependencies:
"@types/react" "*" "@types/react" "*"
"@types/react-helmet@^6.1.11":
version "6.1.11"
resolved "https://registry.npmjs.org/@types/react-helmet/-/react-helmet-6.1.11.tgz"
integrity sha512-0QcdGLddTERotCXo3VFlUSWO3ztraw8nZ6e3zJSgG7apwV5xt+pJUS8ewPBqT4NYB1optGLprNQzFleIY84u/g==
dependencies:
"@types/react" "*"
"@types/react-transition-group@^4.4.0", "@types/react-transition-group@^4.4.6": "@types/react-transition-group@^4.4.0", "@types/react-transition-group@^4.4.6":
version "4.4.10" version "4.4.10"
resolved "https://registry.yarnpkg.com/@types/react-transition-group/-/react-transition-group-4.4.10.tgz#6ee71127bdab1f18f11ad8fb3322c6da27c327ac" resolved "https://registry.npmjs.org/@types/react-transition-group/-/react-transition-group-4.4.10.tgz"
integrity sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q== integrity sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==
dependencies: dependencies:
"@types/react" "*" "@types/react" "*"
...@@ -1344,7 +1351,7 @@ classnames@^2.3.2: ...@@ -1344,7 +1351,7 @@ classnames@^2.3.2:
clsx@^2.0.0: clsx@^2.0.0:
version "2.1.1" version "2.1.1"
resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999" resolved "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz"
integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA== integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==
color-convert@^1.9.0: color-convert@^1.9.0:
...@@ -2720,11 +2727,6 @@ react-router@6.23.0: ...@@ -2720,11 +2727,6 @@ react-router@6.23.0:
dependencies: dependencies:
"@remix-run/router" "1.16.0" "@remix-run/router" "1.16.0"
react-script-tag@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/react-script-tag/-/react-script-tag-1.1.2.tgz#be0fa3a22dfae8165d083f6bc1ff6f9799b20d44"
integrity sha512-4oR9ntvGfX4igiP77vK310ru5Oa77xO7CeYB3Xi9lu0qsikpGpK1Kq1WMFocvy8U4fQFq8ovtrZS/8adfCziFw==
react-select@^5.8.0: react-select@^5.8.0:
version "5.8.0" version "5.8.0"
resolved "https://registry.npmjs.org/react-select/-/react-select-5.8.0.tgz" resolved "https://registry.npmjs.org/react-select/-/react-select-5.8.0.tgz"
......
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