-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Edit NFTs [1/2]: Redo /settings/nfts
to account for all project NFT states
#4051
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Ignored Deployments
|
…rface into launch-nfts-from-nfts-page
</span> | ||
<Button type="primary" onClick={() => setEnableNftsModalOpen(true)}> | ||
<span> | ||
<Trans>Enable NFTs</Trans> |
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.
This button enables operator permissions (allow NFT contract reconfig FC)
@@ -65,111 +65,109 @@ export const useReconfigureFundingCycle = ({ | |||
const reconfigureV2V3FundingCycleWithNftsTx = | |||
useReconfigureV2V3FundingCycleWithNftsTx() | |||
|
|||
const { |
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 diff went whack here but the only thing that's changed is:
- Flesh out the
editingFundingCycleConfig
object insidereconfigureFundingCycle()
rather than outside - Add optional
latestEditingData?: EditingFundingCycleConfig
toreconfigureFundingCycle()
- Dependencies changed
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.
got it, ty!
2e2e7bb
to
09ce682
Compare
09ce682
to
1de4d41
Compare
1de4d41
to
0eae60f
Compare
0eae60f
to
7900a13
Compare
/settings/nfts
to account for all project NFT states
/settings/nfts
to account for all project NFT states/settings/nfts
to account for all project NFT states
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.
@johnnyd-eth tested and lgtm! great work here!
@@ -43,8 +44,8 @@ export function EnableNftsModal({ | |||
confirmLoading={loading} | |||
> | |||
<Trans> | |||
To add NFTs to your cycle. You'll need to{' '} | |||
<strong>grant NFT permissions</strong> before launching your new cycle. | |||
To add NFTs to your next cycle, you'll need to{' '} |
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.
praise nice catch
@@ -65,111 +65,109 @@ export const useReconfigureFundingCycle = ({ | |||
const reconfigureV2V3FundingCycleWithNftsTx = | |||
useReconfigureV2V3FundingCycleWithNftsTx() | |||
|
|||
const { |
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.
got it, ty!
Sorry this one's quite fat, this solves all the NFT states exclusively within
settings/nfts
:Project already has NFTs (no UI changes):
Project has no NFTs and operator permissions not set:
Kapture.2023-09-04.at.20.44.43.mp4
-> then, after automatic page reload once
setOperatorPermission
completes ->Project has no NFTs, operator permissions are set:
Kapture.2023-09-04.at.20.51.46.mp4