Skip to content

Commit

Permalink
Added Next Imagge to Datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Aug 28, 2024
1 parent b1210be commit 3ed0c4d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions frontend/components/Datasets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { imagePrefix } from "@/app/config";

interface FeatureProps {
title: string;
icon: ReactElement;
icon: string;
}

interface Dataset {
Expand Down Expand Up @@ -58,7 +58,7 @@ const Feature = ({ title, icon }: FeatureProps) => {
bg={"gray.100"}
mb={1}
>
{icon}
<Image src={icon} alt="Icon" width={50} height={50} />
</Flex>
<Text fontWeight={600}>{title}</Text>
</Stack>
Expand Down Expand Up @@ -166,14 +166,7 @@ export default function Datasets() {
>
<CardBody>
<Feature
icon={
<Image
src={`${imagePrefix}/assets/icons/${dataset.area.toLowerCase()}.png`}
alt="Icon"
width={50}
height={50}
/>
}
icon={`${imagePrefix}/assets/icons/${dataset.area.toLowerCase()}.png`}
title={dataset.title}
/>
</CardBody>
Expand Down

0 comments on commit 3ed0c4d

Please sign in to comment.