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

feat: Your storage modal #2941

Merged
merged 17 commits into from
Oct 5, 2023
Merged

feat: Your storage modal #2941

merged 17 commits into from
Oct 5, 2023

Conversation

fzavalia
Copy link
Contributor

@fzavalia fzavalia commented Oct 4, 2023

Closes #2919

image

@vercel
Copy link

vercel bot commented Oct 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 5, 2023 1:55pm

@coveralls
Copy link

coveralls commented Oct 4, 2023

Pull Request Test Coverage Report for Build 6419985967

  • 15 of 32 (46.88%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 17.526%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/WorldListPage_WorldsForEnsOwnersFeature/WorldListPage.container.ts 0 2 0.0%
src/components/WorldListPage_WorldsForEnsOwnersFeature/WorldListPage.tsx 0 2 0.0%
src/components/Modals/WorldsYourStorageModal/WorldsYourStorageModal.tsx 0 13 0.0%
Totals Coverage Status
Change from base Build 6411282704: 0.03%
Covered Lines: 3597
Relevant Lines: 16454

💛 - Coveralls

import { connect } from 'react-redux'
import WalletLoginModal from './WorldsYourStorageModal'

export default connect(null, null)(WalletLoginModal)
Copy link
Contributor

Choose a reason for hiding this comment

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

This file is connecting two nulled values, should we remove it?

@@ -37,7 +38,8 @@ const mapState = (state: RootState): MapStateProps => ({
})

const mapDispatch = (dispatch: MapDispatch): MapDispatchProps => ({
onNavigate: path => dispatch(push(path))
onNavigate: path => dispatch(push(path)),
onOpenModal: (name, metadata) => dispatch(openModal(name, metadata))
Copy link
Contributor

Choose a reason for hiding this comment

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

It the only modal that's going to be opened is the one you know, you can fix the name here.

Suggested change
onOpenModal: (name, metadata) => dispatch(openModal(name, metadata))
onOpenModal: (metadata) => dispatch(openModal('WorldsYourStorageModal', metadata))

@@ -19,6 +21,7 @@ export type Props = {
isLoading: boolean
worldsWalletStats?: WorldsWalletStats
onNavigate: (path: string) => void
onOpenModal: (name: Parameters<typeof openModal>[0], metadata: WorldsYourStorageModalMetadata) => void
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be simplified if the name parameter is removed:

Suggested change
onOpenModal: (name: Parameters<typeof openModal>[0], metadata: WorldsYourStorageModalMetadata) => void
onOpenModal: (metadata: WorldsYourStorageModalMetadata) => void

} as Response)
})

it('should return null', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
it('should return null', async () => {
it('should return the account holdings', async () => {

@fzavalia fzavalia merged commit 0c0e956 into master Oct 5, 2023
7 checks passed
@fzavalia fzavalia deleted the feat/your-storage-modal branch October 5, 2023 14:51
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.

Create "Your Storage" modal that shows how much mbs you have from the different holdings
3 participants