Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Feat/issue 4612" #4702

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions lang/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -1300,8 +1300,6 @@
"label.we_need_a_bit_more_info": "Necessitem una mica més d'informació!",
"label.passport_connected": "Passaport connectat",
"label.increase_passport_score": "Augmenta la puntuació del passaport",
"label.project_owner_address_detected": "Adreça del propietari del projecte detectada",
"label.project_owner_cant_donate_to_own_project": "No pots donar a un projecte del qual ets propietari. Hi ha milers de projectes a Giveth que busquen el teu suport! Si us plau, tria un altre projecte per donar.",
"label.qf_donor_eligibility.banner.check_eligibility": "Fes que les teves donacions es igualin! Verifica la teva unicitat amb un clic.",
"label.qf_donor_eligibility.banner.recheck_eligibility": "Fes que les teves donacions es igualin! Augmenta la teva puntuació de Gitcoin Passport abans de",
"label.qf_donor_eligibility.banner.more_info_needed": "Necessitem una mica més d'informació per verificar la teva elegibilitat per QF!",
Expand Down
2 changes: 0 additions & 2 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1304,8 +1304,6 @@
"label.we_need_a_bit_more_info": "We need a bit more info!",
"label.passport_connected": "Passport connected",
"label.increase_passport_score": "Increase Passport score",
"label.project_owner_address_detected": "Project Owner Address Detected",
"label.project_owner_cant_donate_to_own_project": "You cannot donate to a project you are the owner of. There are thousands of projects on Giveth looking for your support! Please choose another project to donate to.",
"label.qf_donor_eligibility.banner.check_eligibility": "Get your donations matched! Verify your uniqueness with one click.",
"label.qf_donor_eligibility.banner.recheck_eligibility": "Get your donations matched! Increase your Gitcoin Passport score before",
"label.qf_donor_eligibility.banner.more_info_needed": "We need a bit more information to verify your QF Eligibility!",
Expand Down
2 changes: 0 additions & 2 deletions lang/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1300,8 +1300,6 @@
"label.we_need_a_bit_more_info": "¡Necesitamos un poco más de información!",
"label.passport_connected": "Pasaporte conectado",
"label.increase_passport_score": "Aumentar la puntuación del pasaporte",
"label.project_owner_address_detected": "Dirección del propietario del proyecto detectada",
"label.project_owner_cant_donate_to_own_project": "No puedes donar a un proyecto del que eres propietario. ¡Hay miles de proyectos en Giveth que buscan tu apoyo! Por favor, elige otro proyecto para donar.",
"label.qf_donor_eligibility.banner.check_eligibility": "¡Haz que tus donaciones sean igualadas! Verifica tu unicidad con un clic.",
"label.qf_donor_eligibility.banner.recheck_eligibility": "¡Haz que tus donaciones sean igualadas! Aumenta tu puntuación de Gitcoin Passport antes de",
"label.qf_donor_eligibility.banner.more_info_needed": "¡Necesitamos un poco más de información para verificar tu elegibilidad para QF!",
Expand Down
138 changes: 0 additions & 138 deletions src/components/modals/DonationByProjectOwner.tsx

This file was deleted.

20 changes: 2 additions & 18 deletions src/components/views/donate/DonateIndex.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC, useEffect, useState } from 'react';
import React, { FC, useEffect } from 'react';
import styled from 'styled-components';
import {
Col,
Expand Down Expand Up @@ -45,7 +45,6 @@ import { useQRCodeDonation } from '@/hooks/useQRCodeDonation';
import EndaomentProjectsInfo from '@/components/views/project/EndaomentProjectsInfo';
import { IDraftDonation } from '@/apollo/types/gqlTypes';
import StorageLabel from '@/lib/localStorage';
import DonationByProjectOwner from '@/components/modals/DonationByProjectOwner';

const DonateIndex: FC = () => {
const { formatMessage } = useIntl();
Expand All @@ -67,14 +66,12 @@ const DonateIndex: FC = () => {
const { isSignedIn, isEnabled } = useAppSelector(state => state.user);

const alreadyDonated = useAlreadyDonatedToProject(project);
const { userData } = useAppSelector(state => state.user);
const [showDonationByProjectOwner, setShowDonationByProjectOwner] =
useState<boolean | undefined>(false);
const dispatch = useAppDispatch();
const isSafeEnv = useIsSafeEnvironment();
const { isOnSolana } = useGeneralWallet();
const router = useRouter();
const { chainId } = useAccount();

const [showQRCode, setShowQRCode] = React.useState(
!!router.query.draft_donation,
);
Expand All @@ -87,12 +84,6 @@ const DonateIndex: FC = () => {
};
}, [dispatch]);

useEffect(() => {
setShowDonationByProjectOwner(
userData?.id !== undefined && userData?.id === project.adminUser.id,
);
}, [userData?.id, project.adminUser]);

useEffect(() => {
const fetchDonation = async () => {
if (qrDonationStatus === 'success') {
Expand Down Expand Up @@ -221,13 +212,6 @@ const DonateIndex: FC = () => {
<>
<DonateHeader />
<DonateContainer>
{showDonationByProjectOwner && (
<DonationByProjectOwner
setShowDonationByProjectOwner={
setShowDonationByProjectOwner
}
/>
)}
{alreadyDonated && (
<AlreadyDonatedWrapper>
<IconDonation24 />
Expand Down
Loading