Skip to content

Commit

Permalink
Merge pull request #52 from AI4Bharat/v1.0
Browse files Browse the repository at this point in the history
Added Icon
  • Loading branch information
Shanks0465 authored Sep 9, 2024
2 parents f0f7946 + 379e295 commit 5853455
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions frontend/components/Datasets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ import {
} from "react-icons/fa";

const datasetIcons: { [key: string]: React.ReactElement } = {
llm: <FaFileAlt color="orange" size={25} />,
asr: <FaMicrophone color="orange" size={25} />,
nmt: <FaLanguage color="orange" size={25} />,
tts: <FaVolumeUp color="orange" size={25} />,
xlit: <FaKeyboard color="orange" size={25} />,
llm: <FaFileAlt color="orange" size={50} />,
asr: <FaMicrophone color="orange" size={50} />,
nmt: <FaLanguage color="orange" size={50} />,
tts: <FaVolumeUp color="orange" size={50} />,
xlit: <FaKeyboard color="orange" size={50} />,
};

interface FeatureProps {
Expand Down Expand Up @@ -196,13 +196,8 @@ export default function Datasets() {
{Object.entries(datasetIcons).map(([key, val]) => (
<>
<HStack>
<ChakraImage
src={`${imagePrefix}/assets/icons/${key}.png`}
alt="Area"
width={50}
height={50}
/>
<Wrap key={key}>
{val}
<Wrap ml={5} key={key}>
{datasets.map((dataset: Dataset) => (
<>
{dataset.area.toLowerCase() === key ? (
Expand Down

0 comments on commit 5853455

Please sign in to comment.