diff --git a/src/components/Card/styles.ts b/src/components/Card/styles.ts index 9e41b00f..8b542763 100644 --- a/src/components/Card/styles.ts +++ b/src/components/Card/styles.ts @@ -7,7 +7,6 @@ export const CardContainer = styled.div` min-height: 405px; width: 100%; height: 100%; - /* overflow: hidden; */ border-radius: 12px; background: white; box-shadow: 0px -2px 0px #dbdbdb inset; diff --git a/src/pages/Projects/components/AllProjects/AllProjects.tsx b/src/pages/Projects/components/AllProjects/AllProjects.tsx index adcdd1be..1602f7f2 100644 --- a/src/pages/Projects/components/AllProjects/AllProjects.tsx +++ b/src/pages/Projects/components/AllProjects/AllProjects.tsx @@ -1,5 +1,4 @@ import { Social, createDebounce, useEffect, useState } from "alem"; -import DonateSDK from "@app/SDK/donate"; import Card from "@app/components/Card/Card"; import FilterDropdown from "@app/components/Inputs/FilterDropdown/FilterDropdown"; import useModals from "@app/hooks/useModals"; @@ -7,7 +6,6 @@ import getProjects from "@app/services/getProjects"; import { Project } from "@app/types"; import getTagsFromSocialProfileData from "@app/utils/getTagsFromSocialProfileData"; import getTeamMembersFromSocialProfileData from "@app/utils/getTeamMembersFromSocialProfileData"; -import yoctosToUsd from "@app/utils/yoctosToUsd"; import ListSection from "../ListSection"; import SearchBar from "../SearchBar/SearchBar"; import { ProjectsContainer, FilterWrapper, Title, Container, Header } from "./styles"; @@ -17,8 +15,6 @@ const AllProjects = () => { const projectsData = getProjects(); const Modals = useModals(); - const [totalDonation, setTotalDonation] = useState(0); - const [totalDonated, setTotalDonated] = useState("0"); const [projects, setProjects] = useState([]); const [filteredProjects, setFilteredProjects] = useState([]); const [sort, setSort] = useState("Sort"); @@ -36,13 +32,6 @@ const AllProjects = () => { return ""; } - const donateConfig: any = DonateSDK.getConfig(); - if (donateConfig && !totalDonated && !totalDonation) { - const lastDonationAmount = yoctosToUsd(donateConfig.net_donations_amount); - setTotalDonated(lastDonationAmount); - setTotalDonation(donateConfig.total_donations_count); - } - const handleSortChange = (sortType: string) => { setSort(sortType); const projects = [...filteredProjects];