From 04b9cb8b4a62d1b45597765b39ec96d26ec57b4b Mon Sep 17 00:00:00 2001 From: asal sahami <asalsahami22@gmail.com> Date: Wed, 18 Sep 2024 12:47:53 +0200 Subject: [PATCH] fanzor --- {pubpub/models => src/components}/Fanzorviewer.glb | 0 src/contents/engineering.tsx | 6 +----- src/contents/example.tsx | 5 +++++ 3 files changed, 6 insertions(+), 5 deletions(-) rename {pubpub/models => src/components}/Fanzorviewer.glb (100%) diff --git a/pubpub/models/Fanzorviewer.glb b/src/components/Fanzorviewer.glb similarity index 100% rename from pubpub/models/Fanzorviewer.glb rename to src/components/Fanzorviewer.glb diff --git a/src/contents/engineering.tsx b/src/contents/engineering.tsx index b7e25256..a8e25437 100644 --- a/src/contents/engineering.tsx +++ b/src/contents/engineering.tsx @@ -4,7 +4,6 @@ import { LoremShort } from "../components/Loremipsum"; import { useEffect } from "react"; import { useLocation } from "react-router-dom"; import { openElement } from "../utils/openElement"; -import FanzorViewer from '../components/Fanzorviewer.tsx'; @@ -30,10 +29,7 @@ export function Engineering() { selectedTab.style.display = 'block'; } } - <div className="container"> - <h1>Protein Structure Viewer</h1> - <FanzorViewer /> - </div> + // Scroll to the section specified by collapseId after opening the tab if (collapseId) { diff --git a/src/contents/example.tsx b/src/contents/example.tsx index aecb20c6..a3f341ec 100644 --- a/src/contents/example.tsx +++ b/src/contents/example.tsx @@ -9,6 +9,7 @@ import SimpleSlider from "../components/Slider"; import React from 'react'; import { Bar, Doughnut, PolarArea } from 'react-chartjs-2'; import { Chart as ChartJS, Tooltip, Legend, BarElement, CategoryScale, LinearScale, Title, RadialLinearScale } from 'chart.js'; +import FanzorViewer from '../components/Fanzorviewer.tsx'; ChartJS.register( @@ -24,6 +25,10 @@ ChartJS.register( export function Example() { return ( <> + <div className="container"> + <h1>Protein Structure Viewer</h1> + <FanzorViewer /> + </div> <h1> Here you can see what we can use</h1> <h2>Collapisbles</h2> -- GitLab