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

Merge main into develop #4709

Merged
merged 74 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from 70 commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
69f1ca1
update apollo client link
MohammadPCh Aug 29, 2024
db52608
remove log
MohammadPCh Aug 29, 2024
ba03fa2
disable ethdenver
MohammadPCh Aug 29, 2024
f20895c
fix importing PFP_ABI
MohammadPCh Aug 29, 2024
659a602
remove unused vars
MohammadPCh Aug 29, 2024
d4a3b76
Merge branch 'main' into hotfix/fix-apollo-errors
MohammadPCh Sep 2, 2024
b8ff375
Merge pull request #4699 from Giveth/develop
Meriem-BM Sep 9, 2024
91b4779
fix givbacks toast button width
divine-comedian Sep 9, 2024
1854c08
Merge pull request #4708 from Giveth/hotfix-givbackstoast-button
Meriem-BM Sep 9, 2024
a29c603
prevent projects with Endaoment label from showing recurring donation…
divine-comedian Sep 9, 2024
57b2ec9
Merge pull request #4710 from Giveth/hotfix-prevent-endaoment-recurri…
divine-comedian Sep 9, 2024
acf812f
Update giv-palooza-bg1.svg
mateodaza Sep 10, 2024
b0bee5e
updating sponsors
mateodaza Sep 10, 2024
a5af3a5
Merge pull request #4713 from Giveth/updating-qf-banner
mateodaza Sep 10, 2024
924f7e3
comment out recurring donation default
divine-comedian Sep 10, 2024
f1e5c87
Merge pull request #4717 from Giveth/comment-out-recurring-donation-d…
divine-comedian Sep 10, 2024
75e9749
adding safe back
mateodaza Sep 11, 2024
5894a46
Merge pull request #4725 from Giveth/multisig-hotfix
mateodaza Sep 11, 2024
168889c
Fix Stellar donation card ui things regarding QF
mohammadranjbarz Sep 15, 2024
1c52ecf
Change qf guid hin in stellar donate page
mohammadranjbarz Sep 15, 2024
99f22bb
Undo passport banner changes
mohammadranjbarz Sep 15, 2024
5910f31
Fix linter errors
mohammadranjbarz Sep 15, 2024
8050d7f
fix: add condition to hide QFSection when its stellar chain
Meriem-BM Sep 16, 2024
6f1a6b1
fix: linter error
Meriem-BM Sep 16, 2024
0dc52e5
fix: showing Toast to switch network when Stellar is picked
Meriem-BM Sep 16, 2024
6351908
fix: linter error
Meriem-BM Sep 16, 2024
30a40ba
fix: hide AlreadyDonated toast
Meriem-BM Sep 16, 2024
e81845a
Merge pull request #4734 from Giveth/4732_fix_stellar_doante_card_ui
Meriem-BM Sep 16, 2024
d1ae4e8
Modify givbacks page to be compatible with givback v2
mohammadranjbarz Sep 12, 2024
98eae3b
Show allocatedGivTokens in givbacks page
mohammadranjbarz Sep 13, 2024
69a43c9
Fix build error
mohammadranjbarz Sep 13, 2024
6e9ec16
Remove console.log
mohammadranjbarz Sep 13, 2024
6295e1b
Add minimum value usd for givback eligible
mohammadranjbarz Sep 17, 2024
7fac316
Fix lint error
mohammadranjbarz Sep 17, 2024
47314e5
Fix lint error
mohammadranjbarz Sep 17, 2024
5597777
Change givPower page text adjustments
mohammadranjbarz Sep 17, 2024
cd04f3a
Change text of allocated GIV tokens so far
mohammadranjbarz Sep 17, 2024
c8078ba
donate page new design
RamRamez Sep 17, 2024
18bff9d
Merge branch 'refs/heads/donate-page-new-design' into release_17_sep
RamRamez Sep 17, 2024
6f91c80
fix eslint error
RamRamez Sep 17, 2024
7bf5df3
Remove title of giv power boosting
mohammadranjbarz Sep 17, 2024
adfce35
Merge branch 'release_17_sep' of github.com:Giveth/giveth-dapps-v2 in…
mohammadranjbarz Sep 17, 2024
4bcffdd
change givback verified_owner copy
RamRamez Sep 17, 2024
c333566
add GIVBACKS_DONATION_QUALIFICATION_VALUE_USD constant
RamRamez Sep 17, 2024
70fe9f3
update verified_public givback copy
RamRamez Sep 17, 2024
8fbf3c3
Fix WALLET_ADDRESS_IS_VALID query params
mohammadranjbarz Sep 17, 2024
d99b794
add min givbacks badge
RamRamez Sep 17, 2024
dc926a0
Merge remote-tracking branch 'origin/release_17_sep' into release_17_sep
RamRamez Sep 17, 2024
768d37f
add min givbacks badge active color
RamRamez Sep 17, 2024
90872b0
add givbacks badge conditions
RamRamez Sep 17, 2024
9aa5086
Merge pull request #4743 from Giveth/release_17_sep
RamRamez Sep 17, 2024
012acd8
fix boost button position
RamRamez Sep 17, 2024
8ed4ebb
Merge pull request #4746 from Giveth/fix-boost-button-position
RamRamez Sep 17, 2024
99316ca
add donor survey banner
divine-comedian Sep 18, 2024
5411c71
Merge branch 'main' into hotfix/fix-apollo-errors
MohammadPCh Sep 22, 2024
650687c
fix build issue
MohammadPCh Sep 22, 2024
a628cd2
fix test page
MohammadPCh Sep 22, 2024
fe6cd02
Merge pull request #4649 from Giveth/hotfix/fix-apollo-errors
MohammadPCh Sep 23, 2024
a5a5314
remove subgraph log
MohammadPCh Sep 23, 2024
9cc353e
Trigger fresh rebuild on Vercel after changing ENV variable
geleeroyale Sep 23, 2024
03c83bf
add fetchTokenBalances
MohammadPCh Sep 23, 2024
df9ffd7
change name to services
MohammadPCh Sep 23, 2024
33bec2b
parse as bigint
MohammadPCh Sep 23, 2024
410147c
return zero for undefined balances
MohammadPCh Sep 23, 2024
81f53f5
use fetchTokenBalances
MohammadPCh Sep 23, 2024
a1194c0
remove logs
MohammadPCh Sep 23, 2024
973c884
update translation
MohammadPCh Sep 23, 2024
8970195
Merge pull request #4767 from Giveth/update-translations
MohammadPCh Sep 23, 2024
b88040d
Merge branch 'main' into feat/update-fetching-token-balance
MohammadPCh Sep 23, 2024
1700f6b
Merge pull request #4766 from Giveth/feat/update-fetching-token-balance
MohammadPCh Sep 23, 2024
33ba3e1
GIVbacks V2 and Stellar hotfixes (#4748)
RamRamez Sep 24, 2024
390a1c9
remove package-lock.json
RamRamez Sep 25, 2024
0fedad6
add giveth.io to next.config.js
RamRamez Sep 25, 2024
f7179a7
Merge pull request #4777 from Giveth/remove-package-lock.json
RamRamez Sep 25, 2024
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: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next

## Getting Started

First, set these envirnment variables in `env.local` file
First, set these envirnment variables in `env.local` file.

```
NEXT_PUBLIC_ENV=
Expand Down
188 changes: 101 additions & 87 deletions lang/ca.json

Large diffs are not rendered by default.

218 changes: 112 additions & 106 deletions lang/en.json

Large diffs are not rendered by default.

192 changes: 100 additions & 92 deletions lang/es.json

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions lang/t_ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,10 @@
"project.givback_toast.description.non_verified_owner": "Pots demostrar que el teu projecte està proporcionant un bé públic? La verificació et dóna accés a una gran quantitat de beneficis com recompenses per a donants, major visibilitat i formes addicionals d'obtenir fons!",
"project.givback_toast.description.non_verified_public": "Actualment, els GIVbacks només es concedeixen per donacions fetes a projectes verificats. La teva contribució encara és important, encara que no generi GIVbacks!",
"project.givback_toast.description.verified_owner": "Impulsa el teu projecte per augmentar el seu percentatge de recompenses i fer-lo més visible a la pàgina de projectes!",
"project.givback_toast.description.verified_owner.note": "Com a propietari d'aquest projecte, no obtindràs GIV per donar-hi.",
"project.givback_toast.description.verified_public": "Els donants de projectes verificats són recompensats amb GIV. Impulsa aquest projecte per augmentar el seu percentatge de recompenses i fer-lo més visible a la pàgina de projectes!",
"project.givback_toast.title.non_verified_owner": "Porta el teu projecte al següent nivell amb la Verificació!",
"project.givback_toast.title.non_verified_public": "Per què no hi ha GIVbacks?",
"project.givback_toast.title.verified_owner_1": "Els donants són recompensats amb fins a ",
"project.givback_toast.title.verified_owner_2": " del valor de la donació!",
"project.givback_toast.title.verified_public_1": "Obtén recompenses amb fins a ",
"project.givback_toast.title.verified_public_2": " del valor de la teva donació!",
"refi": "Refi",
Expand Down
2 changes: 0 additions & 2 deletions lang/t_es.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,10 @@
"project.givback_toast.description.non_verified_owner": "¿Puedes demostrar que tu proyecto está proporcionando un bien público? ¡La verificación te da acceso a una gran cantidad de beneficios como recompensas para los donantes, mayor visibilidad y formas adicionales de recaudar fondos!",
"project.givback_toast.description.non_verified_public": "Los GIVbacks se otorgan actualmente solo por donaciones realizadas a proyectos verificados. ¡Tu contribución sigue siendo importante, incluso si no genera GIVbacks!",
"project.givback_toast.description.verified_owner": "¡Impulsa tu proyecto para aumentar su porcentaje de recompensas y hacerlo más visible en la página de proyectos!",
"project.givback_toast.description.verified_owner.note": "Como propietario de este proyecto, no obtendrás GIV por donar a él.",
"project.givback_toast.description.verified_public": "Los donantes a proyectos verificados son recompensados con GIV. ¡Impulsa este proyecto para aumentar su porcentaje de recompensas y hacerlo más visible en la página de proyectos!",
"project.givback_toast.title.non_verified_owner": "¡Lleva tu proyecto al siguiente nivel con la Verificación!",
"project.givback_toast.title.non_verified_public": "¿Por qué no hay GIVbacks?",
"project.givback_toast.title.verified_owner_1": "Los donantes son recompensados con hasta ",
"project.givback_toast.title.verified_owner_2": " del valor de la donación!",
"project.givback_toast.title.verified_public_1": "Obtén recompensas de hasta ",
"project.givback_toast.title.verified_public_2": " del valor de tu donación!",
"refi": "Refi",
Expand Down
4 changes: 1 addition & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ const { withSentryConfig } = require('@sentry/nextjs');
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
var pjson = require('./package.json');
const generateRobotsTxt = require('./scripts/generate-robots-txt');

const isProduction = process.env.NEXT_PUBLIC_ENV === 'production';
const generateRobotsTxt = require('./scripts/generate-robots-txt');

const defaultLocale = 'en';
const locales = ['ca', 'en', 'es'];
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "givethdapp",
"version": "2.30.0",
"version": "2.31.1",
"private": true,
"scripts": {
"build": "next build",
Expand All @@ -18,7 +18,7 @@
},
"dependencies": {
"@apollo/client": "^3.10.4",
"@giveth/ui-design-system": "^1.11.34",
"@giveth/ui-design-system": "^1.11.35",
"@next/third-parties": "^14.2.5",
"@react-google-maps/api": "^2.19.3",
"@reduxjs/toolkit": "^2.2.4",
Expand All @@ -35,7 +35,7 @@
"@tanstack/react-query": "^5.45.1",
"@vercel/speed-insights": "^1.0.9",
"@web3auth/sign-in-with-solana": "^3.0.0",
"@web3modal/wagmi": "^5.0.7",
"@web3modal/wagmi": "^5.1.7",
"apollo-upload-client": "^18.0.1",
"base58": "^2.0.1",
"bignumber.js": "^9.1.2",
Expand Down Expand Up @@ -72,7 +72,7 @@
"swiper": "^11.1.3",
"unsplash-js": "^7.0.19",
"viem": "^2.16.1",
"wagmi": "^2.11.3"
"wagmi": "^2.12.10"
},
"devDependencies": {
"@babel/preset-typescript": "^7.23.3",
Expand Down
28 changes: 15 additions & 13 deletions pages/landings/ethdenver.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import Head from 'next/head';
import { GetStaticProps } from 'next';
import { FC } from 'react';
import EthDenverView from '@/components/views/landings/EthDenver';
import { FETCH_CAMPAIGN_BY_SLUG } from '@/apollo/gql/gqlCampaign';
import { client } from '@/apollo/apolloClient';
import { ICampaign } from '@/apollo/types/types';

export interface IEthDenverProps {
Expand All @@ -23,18 +21,22 @@ const EthDenverRoute: FC<IEthDenverProps> = ({ campaign }) => {

export const getStaticProps: GetStaticProps = async () => {
try {
const { data } = await client.query({
query: FETCH_CAMPAIGN_BY_SLUG,
variables: {
slug: 'ethDenver',
},
fetchPolicy: 'no-cache',
});
//The campaign in not active
// const { data } = await client.query({
// query: FETCH_CAMPAIGN_BY_SLUG,
// variables: {
// slug: 'ethDenver',
// },
// fetchPolicy: 'no-cache',
// });
// return {
// props: {
// campaign: data.findCampaignBySlug,
// },
// revalidate: 600,
// };
return {
props: {
campaign: data.findCampaignBySlug,
},
revalidate: 600,
props: {},
Comment on lines +24 to +39
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tip

Codebase Verification

Issues Identified with Campaign Data Fetching

The campaign prop is still being passed to the EthDenverView component despite disabling its data fetching:

  • In pages/landings/ethdenver.tsx, <EthDenverView campaign={campaign} /> is called, but campaign is no longer provided in getStaticProps.
  • This may lead to EthDenverView receiving an undefined or empty campaign prop, potentially causing rendering issues.

Recommended Actions:

  1. Update EthDenverView Component:
    • Ensure it can handle cases where the campaign prop is absent or null.
  2. Modify IEthDenverProps Interface:
    • Remove the campaign prop if it's no longer used.
  3. Align getStaticProps:
    • Consistently handle the revalidate property in both success and error cases.
Analysis chain

Review the implications of disabling campaign data fetching

The changes in the getStaticProps function have several implications:

  1. The campaign data fetching has been disabled, as indicated by the comment "The campaign is not active".
  2. The function now returns an empty props object, which may affect the rendering of the EthDenverView component.
  3. The revalidation period has been removed from the successful case but remains in the error case.

Consider the following actions:

  1. Update the EthDenverRoute component to handle the case where no campaign data is provided.
  2. Review the EthDenverView component to ensure it can handle a null or undefined campaign prop.
  3. Consider removing the campaign prop from the IEthDenverProps interface if it's no longer used.
  4. Align the error case with the success case by removing the revalidate property or add it back to the success case for consistency.

To verify the impact of these changes, let's analyze the EthDenverView component:

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check the usage of the campaign prop in EthDenverView

# Test: Search for the EthDenverView component definition and its usage of the campaign prop
ast-grep --lang typescript --pattern 'const EthDenverView = ({ campaign }: { campaign?: ICampaign }) => { $$$ }'

Length of output: 127


Script:

#!/bin/bash
# Description: Search for all usages of the campaign prop within EthDenverView component

rg 'EthDenverView.*campaign' --glob '*.tsx'

Length of output: 228


Script:

#!/bin/bash
# Description: Find all instances where EthDenverView is used and check if campaign prop is passed

rg 'EthDenverView' --glob '*.tsx' | xargs -I {} sh -c "echo {}; rg 'campaign' {}"

Length of output: 235


Script:

#!/bin/bash
# Description: Search for all instances where EthDenverView is used with the campaign prop

rg '<EthDenverView[^>]*campaign=' --glob '*.tsx'

Length of output: 120


Script:

#!/bin/bash
# Description: Find all lines in .tsx files where EthDenverView is used and campaign prop is passed

fd -e tsx | xargs grep '<EthDenverView[^>]*campaign='

Length of output: 125

};
} catch (error) {
return {
Expand Down
2 changes: 0 additions & 2 deletions pages/test2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const YourApp = () => {
})),
});

console.log('subgraphValues', subgraphValues);

// Solana wallet hooks
const {
publicKey,
Expand Down
532 changes: 266 additions & 266 deletions public/images/banners/qf-round/giv-palooza.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/images/logo/stellar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions src/apollo/apolloClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useMemo } from 'react';
import { ApolloClient, InMemoryCache, ApolloLink } from '@apollo/client';
import { RetryLink } from '@apollo/client/link/retry';

import { setContext } from '@apollo/client/link/context';
import { onError } from '@apollo/client/link/error';
import gql from 'graphql-tag';
Expand Down Expand Up @@ -95,7 +94,7 @@ function createApolloClient() {
const httpLink = createUploadLink({
uri: config.BACKEND_LINK,
fetch: customFetch as any,
}) as unknown as ApolloLink;
});

const authLink = setContext((_, { headers }) => {
let locale: string | null = !ssrMode
Expand Down Expand Up @@ -149,9 +148,12 @@ function createApolloClient() {
}
});

// Combine all links using ApolloLink.from to fix terminating link error
const link = ApolloLink.from([errorLink, authLink, retryLink, httpLink]);

return new ApolloClient({
ssrMode,
link: errorLink.concat(authLink.concat(httpLink.concat(retryLink))),
link: link,
cache: new InMemoryCache({
addTypename: false,
}),
Expand All @@ -161,7 +163,6 @@ function createApolloClient() {
},
query: {
fetchPolicy: 'cache-first',
// nextFetchPolicy: 'cache-first',
},
},
typeDefs: gql`
Expand Down
12 changes: 12 additions & 0 deletions src/apollo/gql/gqlGivbacks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { gql } from '@apollo/client';

export const FETCH_ALLOCATED_GIVBACKS = gql`
query allocatedGivbacks($refreshCache: Boolean) {
allocatedGivbacks(refreshCache: $refreshCache) {
usdValueSentAmountInPowerRound
allocatedGivTokens
givPrice
date
}
}
`;
2 changes: 1 addition & 1 deletion src/apollo/gql/gqlProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ export const UPLOAD_IMAGE = gql`
export const WALLET_ADDRESS_IS_VALID = gql`
query WalletAddressIsValid(
$address: String!
$chainType: String
$chainType: ChainType
$memo: String
) {
walletAddressIsValid(
Expand Down
85 changes: 27 additions & 58 deletions src/components/GIVeconomyPages/GIVbacks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import {
GIVbackRewardCard,
GBSubtitle,
GBTitle,
GbDataBlock,
GbButton,
GIVBackCard,
RoundSection,
RoundTitle,
Expand All @@ -46,6 +44,8 @@ import links from '@/lib/constants/links';
import Routes from '@/lib/constants/Routes';
import { SubgraphDataHelper } from '@/lib/subgraph/subgraphDataHelper';
import { fetchSubgraphData } from '@/services/subgraph.service';
import { FETCH_ALLOCATED_GIVBACKS } from '@/apollo/gql/gqlGivbacks';
import { client } from '@/apollo/apolloClient';

export const TabGIVbacksTop = () => {
const { formatMessage } = useIntl();
Expand Down Expand Up @@ -107,14 +107,6 @@ export const TabGIVbacksTop = () => {
actionCb={() => {
setShowHarvestModal(true);
}}
subButtonLabel={
givbackLiquidPart === 0n
? formatMessage({
id: 'label.why_dont_i_have_givbacks',
})
: undefined
}
subButtonCb={() => setShowGivBackExplain(true)}
network={chain?.id}
targetNetworks={[
{
Expand Down Expand Up @@ -157,6 +149,27 @@ export const TabGIVbacksBottom = () => {
const [round, setRound] = useState(0);
const [roundStarTime, setRoundStarTime] = useState(new Date());
const [roundEndTime, setRoundEndTime] = useState(new Date());
// Define an interface for the type of givbackAllocations
interface GivbackAllocations {
usdValueSentAmountInPowerRound: number;
allocatedGivTokens: number;
givPrice: number;
date: string;
}
const [givbackAllocations, setGivbackAllocations] =
useState<GivbackAllocations | null>(null);

useEffect(() => {
async function fetchAllocatedGivbacks() {
const { data } = await client.query({
query: FETCH_ALLOCATED_GIVBACKS,
fetchPolicy: 'network-only',
});
setGivbackAllocations(data?.allocatedGivbacks);
}
fetchAllocatedGivbacks();
}, []);

const { givTokenDistroHelper, isLoaded } = useGIVTokenDistroHelper();
useEffect(() => {
if (
Expand Down Expand Up @@ -185,51 +198,6 @@ export const TabGIVbacksBottom = () => {
return (
<GIVbacksBottomContainer>
<Container>
<Row>
<Col xs={12} sm={6}>
<GbDataBlock
title={formatMessage({ id: 'label.donor_rewards' })}
button={
<Link href={Routes.AllProjects}>
<GbButton
label={formatMessage({
id: 'label.donate_to_earn_giv',
})}
linkType='secondary'
size='large'
/>
</Link>
}
>
{formatMessage({
id: 'label.when_you_donate_to_Verified_projects',
})}
</GbDataBlock>
</Col>
<Col xs={12} sm={6}>
<GbDataBlock
title={formatMessage({
id: 'label.project_verification',
})}
button={
<GbButton
isExternal
label={formatMessage({
id: 'label.verify_your_project',
})}
linkType='secondary'
size='large'
href={links.VERIFICATION_DOCS}
target='_blank'
/>
}
>
{formatMessage({
id: 'label.great_projects_make_the_giveconomy_thrive',
})}
</GbDataBlock>
</Col>
</Row>
<GIVBackCard>
<Row>
<Col xs={12} md={8}>
Expand Down Expand Up @@ -303,9 +271,10 @@ export const TabGIVbacksBottom = () => {
</P>
<GivAllocated>
<NoWrap>
{formatMessage({
id: 'label.one_million_giv',
})}
{givbackAllocations &&
givbackAllocations.allocatedGivTokens
? `${givbackAllocations.allocatedGivTokens} GIV`
: 'TBD'}
</NoWrap>
</GivAllocated>
</RoundInfoTallRow>
Expand Down
29 changes: 2 additions & 27 deletions src/components/GIVeconomyPages/GIVpower.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Image from 'next/image';
import {
brandColors,
H3,
H4,
IconRocketInSpace32,
QuoteText,
Expand All @@ -22,9 +21,6 @@ import {
GIVpowerTopContainer,
Title,
Subtitle,
LearnMoreButton,
HeadingSectionContainer,
HeadingTextContainer,
FeaturesCardContainer,
FeaturesCardHeading,
FeaturesCardSubheading,
Expand Down Expand Up @@ -62,7 +58,6 @@ import GivStake from '../../../public/images/giv_stake.svg';
import Routes from '@/lib/constants/Routes';
import config from '@/configuration';
import { formatWeiHelper } from '@/helpers/number';
import links from '@/lib/constants/links';
import { getTotalGIVpower } from '@/helpers/givpower';
import { useGeneralWallet } from '@/providers/generalWalletProvider';
import { ChainType } from '@/types/config';
Expand Down Expand Up @@ -218,28 +213,6 @@ export function TabPowerBottom() {
return (
<>
<GIVpowerContainer>
<H3 weight={700}>
{formatMessage({
id: 'label.boost_projects_with_givpower',
})}
</H3>
<br />
<HeadingSectionContainer>
<HeadingTextContainer>
<QuoteText size='small'>
{formatMessage({
id: 'label.use_your_givpower_to_boost_verified_projects',
})}
</QuoteText>
</HeadingTextContainer>
<LearnMoreButton
isExternal
label={formatMessage({ id: 'label.learn_more' })}
target='_blank'
href={links.GIVPOWER_DOC}
size='large'
/>
</HeadingSectionContainer>
<FeaturesCardContainer>
<FeaturesCardHeading weight={700}>
{formatMessage({ id: 'label.how_does_givpower_work' })}
Expand Down Expand Up @@ -342,6 +315,7 @@ export function TabPowerBottom() {
<BenefitsCardHeading weight={700}>
{formatMessage({ id: 'label.for_givers' })}
</BenefitsCardHeading>
<br /> {/* Adding a line break here */}
<BenefitsCardContainer>
<BenefitsCardTextContainer>
<QuoteText size='small'>
Expand Down Expand Up @@ -374,6 +348,7 @@ export function TabPowerBottom() {
<BenefitsCardHeading weight={700}>
{formatMessage({ id: 'label.for_projects' })}
</BenefitsCardHeading>
<br /> {/* Adding a line break here */}
<BenefitsCardTextContainer>
<QuoteText size='small'>
{formatMessage({
Expand Down
Loading