diff --git a/src/components/HappyCard.tsx b/src/components/HappyCard.tsx new file mode 100644 index 00000000..724eddd9 --- /dev/null +++ b/src/components/HappyCard.tsx @@ -0,0 +1,30 @@ + +import Card from '@mui/material/Card'; +import CardContent from '@mui/material/CardContent'; +import Checkbox from '@mui/material/Checkbox'; +import Typography from '@mui/material/Typography'; + +function HappyCard() { + return ( + + +
+
+ +
+
+ I am a dataset + from a Place + + some subjects match / more total subjects + +
+
+
+ + + ); +} + +export default HappyCard; diff --git a/src/components/ResultContainer.tsx b/src/components/ResultContainer.tsx index a5af19be..28d3e9bb 100644 --- a/src/components/ResultContainer.tsx +++ b/src/components/ResultContainer.tsx @@ -1,6 +1,6 @@ import { useState, useEffect } from 'react'; import { Button, FormControlLabel, Checkbox, Typography } from '@mui/material'; -import ResultCard from './ResultCard'; +import HappyCard from './HappyCard'; import { Result } from '../utils/types'; import DownloadResultButton from './DownloadResultButton'; import NBDialog from './NBDialog'; @@ -31,14 +31,14 @@ function ResultContainer({ result }: { result: Result[] | null }) { * @param id - The uuid of the dataset to be added or removed from the download list * @returns void */ - function updateDownload(id: string) { - setDownload((currDownload) => { - const newDownload = !currDownload.includes(id) - ? [...currDownload, id] - : currDownload.filter((downloadID) => downloadID !== id); - return newDownload; - }); - } + // function updateDownload(id: string) { + // setDownload((currDownload) => { + // const newDownload = !currDownload.includes(id) + // ? [...currDownload, id] + // : currDownload.filter((downloadID) => downloadID !== id); + // return newDownload; + // }); + // } function handleSelectAll(checked: boolean) { if (result) { @@ -191,17 +191,19 @@ function ResultContainer({ result }: { result: Result[] | null }) {
{result.map((item) => ( - updateDownload(id)} - /> + + // updateDownload(id)} + // /> ))}