diff --git a/components/Chart/Chart.jsx b/components/Chart/Chart.jsx index f872b7b..e7dd9f2 100644 --- a/components/Chart/Chart.jsx +++ b/components/Chart/Chart.jsx @@ -4,7 +4,7 @@ import { useEffect, useRef, useState } from "react"; import { useNavigate } from "react-router-dom"; import useSWR from "swr"; -export default function Chart({ imageSelected }) { +export default function Chart({ imageSelected, setDomain }) { const fetcher = (url) => fetch(url).then((res) => res.json()); const containerRef = useRef(); @@ -58,7 +58,8 @@ export default function Chart({ imageSelected }) { const plot = Plot.plot({ // caption: dataset, grid: true, - color: { scheme: "burd" }, + color: "#454545", + stroke: "#454545", marks: [ Plot.axisY({ label: "Raw Counts", @@ -101,7 +102,10 @@ export default function Chart({ imageSelected }) { diff --git a/components/SearchComp/SearchComp.jsx b/components/SearchComp/SearchComp.jsx index 58651db..a89296a 100644 --- a/components/SearchComp/SearchComp.jsx +++ b/components/SearchComp/SearchComp.jsx @@ -1,3 +1,4 @@ +/* eslint-disable react/prop-types */ import { AnimatePresence, motion } from "framer-motion"; import { useState } from "react"; import { useLocation } from "react-router-dom"; @@ -14,7 +15,7 @@ import "../../src/App.css"; import Sidebar from "../Sidebar/Sidebar"; const fetcher = (url) => fetch(url).then((res) => res.json()); -export default function SearchComp() { +export default function SearchComp({ setDomain }) { const location = useLocation(); const queryParams = new URLSearchParams(location.search); const domainParams = queryParams.get("domain"); @@ -23,6 +24,7 @@ export default function SearchComp() { let [imageSelected, setImageSelected] = useState( domainParams ? domainParams : "" ); + let [reference, setReference] = useState("*"); let [provider, setProvider] = useState("*"); let [pages, setPages] = useState("0"); @@ -147,7 +149,7 @@ export default function SearchComp() { } > - + ) : (
diff --git a/components/UI/Expander.jsx b/components/UI/Expander.jsx index 47e61cf..ed854cc 100644 --- a/components/UI/Expander.jsx +++ b/components/UI/Expander.jsx @@ -25,6 +25,7 @@ export default function Expander({ children, title, status }) { margin: "0 0 0.5rem 0", overflow: "hidden", backgroundColor: "#f8fcff", + color: "#454545", }} >
diff --git a/src/App.css b/src/App.css index 17a8850..8972fb2 100644 --- a/src/App.css +++ b/src/App.css @@ -1,5 +1,6 @@ #root { width: 100%; + background-color: #fff; } h1 { @@ -230,6 +231,7 @@ h1 { } .chartWrap { margin: 0 0 4rem 0; + color: #454545; } .domainInfo { display: flex; @@ -272,6 +274,7 @@ h1 { font-size: 14px; font-weight: 500; margin-left: 0.2rem; + color: #454545; } .annotationInfo { @@ -298,6 +301,7 @@ h1 { font-weight: 500; margin: 0.3rem 0; display: inline-block; + color: #454545; } .footer { diff --git a/src/App.jsx b/src/App.jsx index 22c7de8..be09f41 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,5 +1,5 @@ import "./App.css"; - +import { useState } from "react"; import { useLocation } from "react-router-dom"; import SearchComp from "../components/SearchComp/SearchComp"; @@ -14,16 +14,18 @@ function App() { const queryParams = new URLSearchParams(location.search); const h5webParams = queryParams.get("h5web"); + let [domain, setDomain] = useState(null); + return ( <>
{h5webParams ? ( - + ) : (
- +
)}