bug: comparison view no longer an option

This commit is contained in:
NunoSempere 2022-06-18 14:30:14 -04:00
parent bfe6dcd00e
commit 2e49491ec1
3 changed files with 9 additions and 9 deletions

View File

@ -55,6 +55,7 @@ export function AdvancedOptions({
<button
className={effectButtonStyle}
onClick={() => buttonToggles[i]()}
id={`advancedOptionsButton-${i}`}
>
{buttonName}
</button>

View File

@ -10,7 +10,7 @@ import { pushToMongo } from "../lib/pushToMongo.js";
import { resolveToNumIfPossible } from "../lib/squiggle.js";
export function Homepage({ listOfElementsInit }) {
const SLICE = true;
const SLICE = false;
/* Statefull elements */
// list of elements
@ -136,6 +136,12 @@ export function Homepage({ listOfElementsInit }) {
{/* <Graph />
*/}
<Graph
listOfElements={listOfElements}
links={links}
isListOrdered={isListOrdered}
mergeSortOrder={mergeSortOrder}
/>
{/* Advanced options section */}
<div>
@ -147,13 +153,6 @@ export function Homepage({ listOfElementsInit }) {
onChangeOfDataset={onChangeOfDataset}
/>
</div>
<Graph
listOfElements={listOfElements}
links={links}
isListOrdered={isListOrdered}
mergeSortOrder={mergeSortOrder}
/>
</div>
);
}

View File

@ -27,5 +27,5 @@ export async function getStaticProps() {
// Main react component
export default function Home({ listOfElementsForView }) {
return <ComparisonView listOfElementsForView={listOfElementsForView} />;
return <Homepage listOfElementsForView={listOfElementsForView} />;
}