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

Superfluid develop branch #3435

Merged
merged 336 commits into from
Dec 28, 2023
Merged
Changes from 6 commits
Commits
Show all changes
336 commits
Select commit Hold shift + click to select a range
e4a42f6
add isSuperToken
MohammadPCh Nov 6, 2023
eac7d36
handle super tokens in Token Icon
MohammadPCh Nov 6, 2023
ae18a90
handle super tokens icon
MohammadPCh Nov 6, 2023
8235fa3
update types
MohammadPCh Nov 6, 2023
aa7dd1e
add token to FETCH_USER_STREAMS
MohammadPCh Nov 6, 2023
5b9962d
separate superfluid types
MohammadPCh Nov 6, 2023
4436b1d
categorize streams by token
MohammadPCh Nov 6, 2023
209c685
change address to id in token
MohammadPCh Nov 6, 2023
6fab16a
add tokenStreams
MohammadPCh Nov 6, 2023
3bbdc64
hide tokens with stream
MohammadPCh Nov 6, 2023
85b7017
fix disable condition
MohammadPCh Nov 6, 2023
630ff0b
init StreamInfo
MohammadPCh Nov 6, 2023
a25a19a
fix styles
MohammadPCh Nov 23, 2023
33e54ed
Added ClaimModal configs
alireza-sharifpour Nov 23, 2023
0f1866a
Added Status to ProjectItem
alireza-sharifpour Nov 23, 2023
91f384e
handled Status Dynamically
alireza-sharifpour Nov 23, 2023
993cbf6
created ProjectVerificationBadge
alireza-sharifpour Nov 23, 2023
c9052c4
added ProjectVerificationBadge to ProjectItem
alireza-sharifpour Nov 23, 2023
e19feb8
update tokenInfo balance style
MohammadPCh Nov 23, 2023
c1fffab
add givback row
MohammadPCh Nov 23, 2023
172e5c8
update ui-design-system
MohammadPCh Nov 23, 2023
76f227e
show givback badge
MohammadPCh Nov 23, 2023
da8ba48
add Eligible Tokens title
MohammadPCh Nov 23, 2023
b7415be
update stream info
MohammadPCh Nov 23, 2023
8843ae8
show streams info
MohammadPCh Nov 23, 2023
2caa446
update StreamInfo data
MohammadPCh Nov 23, 2023
5e1b347
update StreamInfo styles
MohammadPCh Nov 23, 2023
fd59804
fix selected stream icon
MohammadPCh Nov 23, 2023
5c8d70b
limitFraction
MohammadPCh Nov 23, 2023
de7f922
add currentFlowRate
MohammadPCh Nov 23, 2023
db52a44
show end date
MohammadPCh Nov 23, 2023
0254694
show run out month
MohammadPCh Nov 26, 2023
ed4e63c
add Funding projects count
MohammadPCh Nov 26, 2023
23ea044
update tokenInfo styles
MohammadPCh Nov 26, 2023
9b39e0c
increase number of fractions
MohammadPCh Nov 26, 2023
09da3af
add superfluid sdk
MohammadPCh Nov 26, 2023
6ca1b26
decrease the ethers version
MohammadPCh Nov 27, 2023
d0512fc
add ethers helper
MohammadPCh Nov 27, 2023
c597486
init sf
MohammadPCh Nov 27, 2023
e455b2e
add getEthersSigner
MohammadPCh Nov 27, 2023
9c559ba
fix address
MohammadPCh Nov 27, 2023
02fd28e
update onDonate
MohammadPCh Nov 27, 2023
de0997e
Fixed spacing
alireza-sharifpour Nov 27, 2023
ae7b7e5
Added ProjectQFStatus component
alireza-sharifpour Nov 27, 2023
f7f6fe2
init onDonateEth and onDonate
MohammadPCh Nov 27, 2023
0fa359e
Merge pull request #3415 from Giveth/claim-recurring-donations
MohammadPCh Nov 28, 2023
e0ca388
Merge branch 'superfluid-develop-branch' into add-recurring-to-donati…
MohammadPCh Nov 28, 2023
02fb1ca
remove handle modals
MohammadPCh Nov 28, 2023
700da8f
fix address imports
MohammadPCh Nov 28, 2023
f550f12
fix other address imports
MohammadPCh Nov 28, 2023
c74530d
fix connect button
MohammadPCh Nov 28, 2023
dbd132f
remove handle modal
MohammadPCh Nov 28, 2023
519b96c
Merge pull request #3385 from Giveth/add-recurring-to-donation-page
alireza-sharifpour Nov 28, 2023
0554f97
changed Superfluid to svg
alireza-sharifpour Nov 28, 2023
dee1f6b
removed old logo
alireza-sharifpour Nov 28, 2023
82d41ee
added svg logo
alireza-sharifpour Nov 28, 2023
a263d3b
Added ProjectListedStatus component
alireza-sharifpour Nov 28, 2023
b670f3b
handle error
MohammadPCh Nov 28, 2023
adf170c
fix amount
MohammadPCh Nov 28, 2023
bfa76cc
Merge pull request #3432 from Giveth/fix-logo-and-public-site-listing
MohammadPCh Nov 29, 2023
6f33d5b
fix approve token
MohammadPCh Nov 29, 2023
a73f075
show super tokens
MohammadPCh Nov 29, 2023
43dcf30
update giveth ui package to fix givback icon
MohammadPCh Nov 29, 2023
efabd28
create a flow
MohammadPCh Nov 29, 2023
69ce035
show underlying token symbol if exists
MohammadPCh Nov 29, 2023
f711f27
remove wagmi provider
MohammadPCh Nov 29, 2023
3b3c498
handle zero flowrates
MohammadPCh Nov 29, 2023
a4b9094
add batch call
MohammadPCh Nov 29, 2023
c179186
check allowance before continue
MohammadPCh Nov 29, 2023
308c7fc
Merge branch 'develop' into superfluid-develop-branch
MohammadPCh Dec 2, 2023
471d28e
Merge branch 'superfluid-develop-branch' into recurring-donation-func…
MohammadPCh Dec 2, 2023
5adca5a
move selected token functionality to context
MohammadPCh Dec 2, 2023
b03cdfa
init ConfirmRecurringDonationModal
MohammadPCh Dec 2, 2023
9670364
remove confirm from the name
MohammadPCh Dec 2, 2023
641e449
show donation modal
MohammadPCh Dec 2, 2023
fe6f430
add title
MohammadPCh Dec 2, 2023
b980971
handle steps
MohammadPCh Dec 2, 2023
5aac609
separate inputs
MohammadPCh Dec 2, 2023
8515dbb
change max and percentage to options
MohammadPCh Dec 2, 2023
47d5e20
add StakingAmountInput
MohammadPCh Dec 2, 2023
667cfec
add ids
MohammadPCh Dec 2, 2023
fb5464c
use Amount input component
MohammadPCh Dec 2, 2023
af7103a
remove NumericalInput
MohammadPCh Dec 2, 2023
82d0112
update BaseInput styles
MohammadPCh Dec 2, 2023
86f5695
update StakingAmountInput styles
MohammadPCh Dec 2, 2023
5406307
update input style
MohammadPCh Dec 2, 2023
fd69033
fix icons
MohammadPCh Dec 2, 2023
55447f6
add token TokenIconWithGIVBack
MohammadPCh Dec 2, 2023
17e184c
use TokenIconWithGIVBack
MohammadPCh Dec 2, 2023
b4cd596
fix maxAmount
MohammadPCh Dec 2, 2023
732353c
handle decimals
MohammadPCh Dec 2, 2023
1570948
update onUserInput by decimals
MohammadPCh Dec 2, 2023
3565718
update color
MohammadPCh Dec 2, 2023
4cb1c92
init slider
MohammadPCh Dec 2, 2023
3af8ccd
show streams info
MohammadPCh Dec 2, 2023
e35a929
use GivethSection
MohammadPCh Dec 3, 2023
d834f27
add donate info
MohammadPCh Dec 3, 2023
17084e0
fix DonateToGiveth title
MohammadPCh Dec 3, 2023
c315013
add powered row
MohammadPCh Dec 3, 2023
ae38476
fix InputWithUnit imports
MohammadPCh Dec 4, 2023
206382d
init item
MohammadPCh Dec 4, 2023
aa0691f
add useTokenPrice
MohammadPCh Dec 4, 2023
f867a6d
move donation modal
MohammadPCh Dec 4, 2023
fe850e6
use wagmi address type
MohammadPCh Dec 4, 2023
ee3901d
show items
MohammadPCh Dec 4, 2023
aa65436
show correct amount
MohammadPCh Dec 4, 2023
bf6f502
update donate button disable condition
MohammadPCh Dec 4, 2023
d062dde
show price
MohammadPCh Dec 4, 2023
b04c63f
add run out section
MohammadPCh Dec 4, 2023
bae639e
update token info disable condition
MohammadPCh Dec 5, 2023
bc22a9e
add approve button
MohammadPCh Dec 5, 2023
ed7735d
fix select token
MohammadPCh Dec 5, 2023
17673b9
add loading to refresh
MohammadPCh Dec 5, 2023
aa86c11
fix eth refreshing
MohammadPCh Dec 5, 2023
6ad2bae
move stake steps to steps folder
MohammadPCh Dec 5, 2023
3f2b438
init steps
MohammadPCh Dec 5, 2023
6f4d753
remove old stake steps
MohammadPCh Dec 5, 2023
2889daa
add new stake steps
MohammadPCh Dec 5, 2023
c1b0326
use new stake steps
MohammadPCh Dec 5, 2023
aac047b
move mint modal
MohammadPCh Dec 5, 2023
d4b59fd
add mint step
MohammadPCh Dec 5, 2023
5a1e21d
use mint step
MohammadPCh Dec 5, 2023
202e37a
add translation to steps
MohammadPCh Dec 5, 2023
55cfbcd
add DonateSteps
MohammadPCh Dec 5, 2023
f077fd9
fix typo
MohammadPCh Dec 5, 2023
90a61bf
add theme to step title
MohammadPCh Dec 5, 2023
e55b490
add theme to steps
MohammadPCh Dec 5, 2023
e577019
move donate steps to inner modal
MohammadPCh Dec 5, 2023
c27f3ad
add theme to steps line
MohammadPCh Dec 5, 2023
80a2545
add user select none
MohammadPCh Dec 5, 2023
689db36
add approve functionality
MohammadPCh Dec 6, 2023
b9b05c3
add findSuperTokenByTokenAddress
MohammadPCh Dec 6, 2023
f1864eb
update on donate functionality
MohammadPCh Dec 6, 2023
f03de5f
fix button label
MohammadPCh Dec 6, 2023
db20f77
use wagmi address type
MohammadPCh Dec 6, 2023
b145cdb
handle multiple stream
MohammadPCh Dec 6, 2023
d3de565
fix approve
MohammadPCh Dec 6, 2023
a071115
handle user has stream to giveth
MohammadPCh Dec 6, 2023
423643a
fix donation on giveth for second time
MohammadPCh Dec 7, 2023
ec412c0
make button disable on loading
MohammadPCh Dec 7, 2023
8c7f902
handle Eth
MohammadPCh Dec 7, 2023
006cc01
show super token balance as amount
MohammadPCh Dec 7, 2023
5e873cb
remove unused functions
MohammadPCh Dec 7, 2023
7a7f61d
move token streams to context
MohammadPCh Dec 7, 2023
f5e0e6c
add findUserStreamOnSelectedToken
MohammadPCh Dec 7, 2023
60026ea
handle userStreamOnSelectedToken
MohammadPCh Dec 8, 2023
72fbcfa
fix useTokenPrice
MohammadPCh Dec 10, 2023
44c1b22
set percentage on update
MohammadPCh Dec 11, 2023
2c73e1b
fixed canceled project status issue
alireza-sharifpour Dec 11, 2023
46b4e93
Added canceled case
alireza-sharifpour Dec 11, 2023
eb779d5
show other recurring donations row
MohammadPCh Dec 11, 2023
d9f2206
fix action button for confirming
MohammadPCh Dec 11, 2023
d875296
calc total stream per sec
MohammadPCh Dec 11, 2023
e3cb7c8
fix changing selected token
MohammadPCh Dec 11, 2023
ac0cd81
handle updating in donate modal
MohammadPCh Dec 11, 2023
870d630
fix submitted step
MohammadPCh Dec 11, 2023
22684bb
use ONE_MONTH_SECONDS
MohammadPCh Dec 11, 2023
18c5c79
change slider color on exceed
MohammadPCh Dec 11, 2023
7bef7a0
fix isTotalStreamExceed
MohammadPCh Dec 11, 2023
54b5d28
Merge pull request #3475 from Giveth/fix-canceled-project-status
alireza-sharifpour Dec 11, 2023
846e445
init layer
MohammadPCh Dec 14, 2023
dde3a2a
merge
MohammadPCh Dec 17, 2023
389ec7c
update yarn.lock
MohammadPCh Dec 17, 2023
18bf928
fix encoding base 58 on ethers v5
MohammadPCh Dec 17, 2023
109e5b9
fix prettier
MohammadPCh Dec 17, 2023
c320be3
fix build issue
MohammadPCh Dec 17, 2023
d721db0
Merge pull request #3496 from Giveth/merge-develop-to-superfluid
alireza-sharifpour Dec 17, 2023
1148922
Merge branch 'develop' into superfluid-develop-branch
MohammadPCh Dec 17, 2023
8bcfb29
Merge branch 'superfluid-develop-branch' into recurring-donation-func…
MohammadPCh Dec 17, 2023
6ac14f5
fix prettier
MohammadPCh Dec 17, 2023
9eebc94
add wrapper
MohammadPCh Dec 18, 2023
fdacd0e
init toast
MohammadPCh Dec 18, 2023
d966e4d
add SwitchButton
MohammadPCh Dec 18, 2023
4e3ad32
add desc
MohammadPCh Dec 18, 2023
a288539
handle switch network
MohammadPCh Dec 18, 2023
b76b50e
show one-time donation
MohammadPCh Dec 18, 2023
2149793
disable closing modal on approving and donation
MohammadPCh Dec 18, 2023
50454b6
Added ABI
alireza-sharifpour Dec 18, 2023
985727c
Added anchorRegistryAddress
alireza-sharifpour Dec 18, 2023
9162e20
add top up button
MohammadPCh Dec 18, 2023
6901ea3
created useCreateAnchorContract hook
alireza-sharifpour Dec 19, 2023
f87f79f
project id cannot be undefined
alireza-sharifpour Dec 19, 2023
db83b12
Added comnents
alireza-sharifpour Dec 19, 2023
e0772fd
init DepositSteps
MohammadPCh Dec 20, 2023
a8f1e32
init ModifySuperTokenModal
MohammadPCh Dec 20, 2023
7fcdda2
init tabs
MohammadPCh Dec 20, 2023
baf2b2e
init DepositSuperToken
MohammadPCh Dec 21, 2023
ed28c4f
update test2
MohammadPCh Dec 21, 2023
3c2b6de
fix super token and token
MohammadPCh Dec 21, 2023
d610d4c
add stream balance
MohammadPCh Dec 21, 2023
a182003
add streams info
MohammadPCh Dec 21, 2023
d850a99
pass token streams to deposit
MohammadPCh Dec 21, 2023
ba9de8e
calc run out stream time
MohammadPCh Dec 21, 2023
02c11b6
add ModifyInfoToast
MohammadPCh Dec 21, 2023
3563018
use ModifyInfoToast
MohammadPCh Dec 21, 2023
02f3f00
add confirm button
MohammadPCh Dec 21, 2023
fb3013d
show steps
MohammadPCh Dec 21, 2023
f7feb40
add deposit translation
MohammadPCh Dec 21, 2023
3c2911d
fix super token balance
MohammadPCh Dec 21, 2023
c26e8ec
separate run out info section
MohammadPCh Dec 24, 2023
e7b8b1f
handle division by zero
MohammadPCh Dec 24, 2023
85a8e53
add approve step ui
MohammadPCh Dec 24, 2023
68e34b0
add approve functionality
MohammadPCh Dec 24, 2023
0ac4204
skip approve for native token
MohammadPCh Dec 24, 2023
c09d1d7
handle steps
MohammadPCh Dec 24, 2023
7544259
fix disable condition
MohammadPCh Dec 24, 2023
0ca1486
fix fetchEthPrice
MohammadPCh Dec 24, 2023
305adac
add onDeposit
MohammadPCh Dec 24, 2023
666f0bf
handle done action
MohammadPCh Dec 24, 2023
71cbf6d
fix loading state
MohammadPCh Dec 24, 2023
c18adcd
fix disable condition
MohammadPCh Dec 24, 2023
e978845
hide tabs
MohammadPCh Dec 24, 2023
fcd16e5
use token balance only from use token
MohammadPCh Dec 24, 2023
0cbdb46
add feature flag
MohammadPCh Dec 25, 2023
13d59ec
handled Claim Recurring Donations with feature flag
alireza-sharifpour Dec 25, 2023
c1b234b
hide tokens with stream on project from token list
MohammadPCh Dec 25, 2023
89313c0
comment eruda
MohammadPCh Dec 25, 2023
c8cff63
fix typo
MohammadPCh Dec 25, 2023
ba01150
update SuccessView
MohammadPCh Dec 25, 2023
951f23d
show SuccessView
MohammadPCh Dec 25, 2023
0798083
update styles
MohammadPCh Dec 25, 2023
f1118cb
update one time donation
MohammadPCh Dec 25, 2023
29fa2c9
remove unused
MohammadPCh Dec 25, 2023
367dd3a
use project data from props instead of context in QFSection
MohammadPCh Dec 25, 2023
906d96a
use project data from props instead of context in DonationSection
MohammadPCh Dec 25, 2023
1bc3e6e
pass projectData
MohammadPCh Dec 25, 2023
4c032c8
show project Info
MohammadPCh Dec 25, 2023
a35bb25
fix already donated width
MohammadPCh Dec 25, 2023
e77c852
set donation tx
MohammadPCh Dec 25, 2023
8822ffa
Merge branch 'superfluid-develop-branch' into recurring-donation-func…
aminlatifi Dec 25, 2023
9b7a776
fix no stream
MohammadPCh Dec 26, 2023
53731ce
handle giveth project
MohammadPCh Dec 26, 2023
d2c5337
fix nice banner width
MohammadPCh Dec 26, 2023
36ca29e
Merge pull request #3436 from Giveth/recurring-donation-functionality
MohammadPCh Dec 26, 2023
e494eb2
translate DonationCard
MohammadPCh Dec 27, 2023
a024233
translate RecurringDonationCard
MohammadPCh Dec 27, 2023
3d041af
translate SelectTokenModal
MohammadPCh Dec 27, 2023
520749a
remove unused prop
MohammadPCh Dec 27, 2023
7e1a06e
translate StreamInfo
MohammadPCh Dec 27, 2023
61ff8a4
translate WrongNetworkLayer
MohammadPCh Dec 27, 2023
a2e5e69
translate RecurringDonationModal
MohammadPCh Dec 27, 2023
ae3d466
translate ModifySuperTokenModal
MohammadPCh Dec 27, 2023
60c6b74
translate ModifySuperTokenModal
MohammadPCh Dec 27, 2023
8b5ae6b
translate DepositSuperToken
MohammadPCh Dec 27, 2023
a633c78
Merge branch 'develop' into superfluid-develop-branch
MohammadPCh Dec 27, 2023
11015a9
fix approveERC20tokenTransfer
MohammadPCh Dec 27, 2023
1ba4c26
install new packages
MohammadPCh Dec 27, 2023
077c350
remove unused logs
MohammadPCh Dec 27, 2023
db0a521
Merge pull request #3501 from Giveth/create-anchor-contract-hook
MohammadPCh Dec 28, 2023
3ebda61
Merge branch 'develop' into superfluid-develop-branch
MohammadPCh Dec 28, 2023
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 src/apollo/types/types.ts
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ export interface IEstimatedMatching {
}

export interface IProject {
id?: string;
id: string;
title?: string;
balance?: number;
image?: string;
838 changes: 838 additions & 0 deletions src/artifacts/createProfile.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/config/development.tsx
Original file line number Diff line number Diff line change
@@ -344,6 +344,7 @@ const config: EnvConfig = {
gasPreference: {
// Keep it empty for automatic configuration
},
anchorRegistryAddress: '0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3',
subgraphAddress:
'https://api.thegraph.com/subgraphs/name/giveth/giveth-economy-optim-staging',
GIV_TOKEN_ADDRESS: OPTIMISM_GIV_TOKEN_ADDRESS,
1 change: 1 addition & 0 deletions src/config/production.tsx
Original file line number Diff line number Diff line change
@@ -417,6 +417,7 @@ const config: EnvConfig = {
gasPreference: {
// Keep it empty for automatic configuration
},
anchorRegistryAddress: '0x4AAcca72145e1dF2aeC137E1f3C5E3D75DB8b5f3',
subgraphAddress:
'https://api.thegraph.com/subgraphs/name/giveth/giveconomy-optimism-mainnet',
GIV_TOKEN_ADDRESS: OPTIMISM_GIV_TOKEN_ADDRESS,
44 changes: 44 additions & 0 deletions src/hooks/useCreateAnchorContract.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { useContractWrite, usePrepareContractWrite } from 'wagmi';
import createProfileABI from '@/artifacts/createProfile.json';
import config from '@/configuration';
import { IProject } from '@/apollo/types/types';

interface ICreateAnchorContract {
project: IProject;
}

// Custom hook for creating an anchor contract
const useCreateAnchorContract = ({ project }: ICreateAnchorContract) => {
// Destructure project properties
const {
slug,
adminUser: { walletAddress },
id,
} = project;

// Prepare the contract configuration using usePrepareContractWrite hook
const { config: contractConfig } = usePrepareContractWrite({
address: config.OPTIMISM_CONFIG.anchorRegistryAddress,
functionName: 'createProfile',
abi: createProfileABI.abi,
chainId: config.OPTIMISM_NETWORK_NUMBER,
args: [
+id, // Convert id to a number
slug,
{
protocol: 1,
pointer: '',
},
walletAddress,
[],
],
});

// Use the useContractWrite hook to perform the contract write operation
const contractWrite = useContractWrite(contractConfig);

// Return the contract write result
return { ...contractWrite };
};

export default useCreateAnchorContract;
1 change: 1 addition & 0 deletions src/types/config.ts
Original file line number Diff line number Diff line change
@@ -174,6 +174,7 @@ export interface GnosisNetworkConfig extends NetworkConfig {

export interface OptimismNetworkConfig extends NetworkConfig {
subgraphAddress: string;
anchorRegistryAddress: Address;
TOKEN_DISTRO_ADDRESS: Address;
GIVPOWER: SimplePoolStakingConfig;
GIV_TOKEN_ADDRESS: Address;

Unchanged files with check annotations Beta

}
};
asyncFunc();
}, []);

Check warning on line 196 in pages/_app.tsx

GitHub Actions / build

React Hook useEffect has missing dependencies: 'asPath', 'pathname', 'query', and 'router'. Either include them or remove the dependency array
return (
<>
return () => {
dispatch(setShowFooter(true));
};
}, []);

Check warning on line 32 in pages/donate/[slug].tsx

GitHub Actions / build

React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
return (
<DonateProvider project={project}>
target='_blank'
rel='noopener noreferrer'
>
<img

Check warning on line 21 in pages/gitcoingrants.tsx

GitHub Actions / build

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
alt='gitcoin alpha is here'
style={{ objectFit: 'cover' }}
src={
/>
</Link>
</Description>
<img

Check warning on line 73 in pages/gitcoingrants.tsx

GitHub Actions / build

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
alt='gitcoin alpha is here'
src='/images/banners/giveth-gitcoin-alpha.png'
/>
/>
</Link>
</Description>
<img

Check warning on line 102 in pages/gitcoingrants.tsx

GitHub Actions / build

Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element
alt='gitcoin alpha is here'
src='/images/banners/refi-gitcoin-alpha.png'
/>
);
};
export const getStaticProps: GetStaticProps = async context => {

Check warning on line 44 in pages/index.tsx

GitHub Actions / build

'context' is defined but never used. Allowed unused args must match /^_/u
const { data } = await client.query({
query: FETCH_HOMEPAGE_DATA,
variables: HOME_QUERY_VARIABLES,
const { query } = context;
const slug = query.slug as string;
const newSlug = slug.toLowerCase();
const newURL = '/landings/' + newSlug;

Check warning on line 12 in pages/landings/[slug].tsx

GitHub Actions / build

'newURL' is assigned a value but never used. Allowed unused vars must match /^_/u
let rules: any = {};
if (slug && newSlug !== slug) {
);
};
export const getStaticProps: GetStaticProps = async context => {

Check warning on line 24 in pages/landings/ethdenver.tsx

GitHub Actions / build

'context' is defined but never used. Allowed unused args must match /^_/u
try {
const { data } = await client.query({
query: FETCH_CAMPAIGN_BY_SLUG,
useEffect(() => {
dispatch(setShowFooter(false));
}, []);

Check warning on line 20 in pages/notifications/settings.tsx

GitHub Actions / build

React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
if (isLoading) {
return <WrappedSpinner />;
});
const fetchProjects = async () => {
const res = await client.query({

Check warning on line 74 in pages/test1.tsx

GitHub Actions / build

'res' is assigned a value but never used. Allowed unused vars must match /^_/u
query: FETCH_ALL_PROJECTS,
fetchPolicy: 'network-only',
});