Skip to content

Fix vault detail imports issue - #1483

Closed
Opulencechuks wants to merge 5 commits into
Disciplr-Org:mainfrom
Opulencechuks:fix-vault-detail-imports-issue
Closed

Opulencechuks wants to merge 5 commits into
Disciplr-Org:mainfrom
Opulencechuks:fix-vault-detail-imports-issue

Conversation

@Opulencechuks

Copy link
Copy Markdown
Contributor

Closes #1199

This PR resolves the ReferenceErrors in src/pages/VaultDetail.tsx that previously caused the route (/vaults/:id) to fail on first render.

Changes made:

  • Ensured Vault type is correctly imported from ../types/vault.
  • Added the missing VaultMetaPanel component import from ../components/VaultMetaPanel.
  • Imported createVaultPrefillFromVault from ../utils/vaultPrefill.
  • Imported isValidIcsDeadline and downloadIcsEvent from ../utils/ics.
  • Verified the removal of unused legacy imports (useEffect, MilestoneStatus, and TxType) to clean up the module.

The Vault Detail view now renders perfectly for existing vault IDs, and the page dependencies have been verified to satisfy the VaultDetail.test.tsx suite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix six undefined identifiers crashing VaultDetail.tsx

2 participants