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 <button
className={effectButtonStyle} className={effectButtonStyle}
onClick={() => buttonToggles[i]()} onClick={() => buttonToggles[i]()}
id={`advancedOptionsButton-${i}`}
> >
{buttonName} {buttonName}
</button> </button>

View File

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

View File

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