Skip to content

Commit

Permalink
all project cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Rb3 committed May 27, 2024
1 parent a94ce0c commit 76200ce
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/components/Card/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
11 changes: 0 additions & 11 deletions src/pages/Projects/components/AllProjects/AllProjects.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
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";
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";
Expand All @@ -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<any>([]);
const [filteredProjects, setFilteredProjects] = useState<any>([]);
const [sort, setSort] = useState("Sort");
Expand All @@ -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];
Expand Down

0 comments on commit 76200ce

Please sign in to comment.