diff --git a/new-website/deepchem/components/Layers/FilterButton.js b/new-website/deepchem/components/Layers/FilterButton.js deleted file mode 100644 index d7d72ade..00000000 --- a/new-website/deepchem/components/Layers/FilterButton.js +++ /dev/null @@ -1,53 +0,0 @@ -import Image from "next/image"; - -import deepchemCross from "../../public/icons/deepchem-cross.png"; - -/** - * The FilterButton component is used to create a button for each filter - * @component - * @param {Object} props - props passed to the component - * @param {Array} props.category - array of all the available filters - * @param {String} props.name - name of the particular filter - * @param {Image} props.image - image associated to the filter - * @return {JSX.Element} - A JSX element representing the FilterButton - */ -const FilterButton = ({ category, name, image }) => { - const TRUNC_LENGTH = 20; - const nameShort = name.replace(/Model$/g, ""); - - return ( - <> -
- {nameShort.length > TRUNC_LENGTH - ? nameShort.substring(0, TRUNC_LENGTH) + "..." - : nameShort} -
-