-
Notifications
You must be signed in to change notification settings - Fork 12
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
335 referral system #85
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
…tend into 335-referral_system
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
next.config.js
Outdated
reactStrictMode: true, | ||
swcMinify: true, | ||
images: { | ||
domains: ['ipfs.io'], | ||
domains: [ | ||
'ipfs.infura.io', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not cache these domains, and just use classic img component
@@ -53,16 +48,19 @@ function ProposalForm({ | |||
return <div>Loading...</div>; | |||
} | |||
|
|||
//Store referrerId in local storage if any | |||
if (router.query.referrerId) { | |||
localStorage.setItem(`${service.id}-${user.id}`, router.query.referrerId as string); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be wrap in a useEffect
src/components/Form/ProposalForm.tsx
Outdated
(service.referralAmount && | ||
(Number(localStorage.getItem(`${service.id}-${user.id}`)) || | ||
Number(router.query.referrerId as string) || | ||
Number(existingProposal?.referrer?.id))) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The existing value should be the first one used
src/components/request.ts
Outdated
): Promise<any> => { | ||
try { | ||
return await axios.post('/api/delegate/create-service', { | ||
return await axios.post('/api/delegate/create-service-referral', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why renaming here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to remove this.
src/config.ts
Outdated
@@ -109,11 +110,11 @@ const mumbai: Config = { | |||
name: 'Matic', | |||
decimals: 18, | |||
}, | |||
'0xe6b8a5CF854791412c1f6EFC7CAf629f5Df1c747': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why deleting this one ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wasn't working for me, I don't think it's been approved. I can put it back.
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Changed graph url Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
Signed-off-by: Quentin D.C <[email protected]>
PULL REQUEST CHECK LIST