-
Notifications
You must be signed in to change notification settings - Fork 79
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
feat: Your storage modal #2941
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
1b8ab53
to
ba26d90
Compare
Pull Request Test Coverage Report for Build 6419985967
💛 - Coveralls |
import { connect } from 'react-redux' | ||
import WalletLoginModal from './WorldsYourStorageModal' | ||
|
||
export default connect(null, null)(WalletLoginModal) |
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 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)) |
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.
It the only modal that's going to be opened is the one you know, you can fix the name here.
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 |
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 can be simplified if the name
parameter is removed:
onOpenModal: (name: Parameters<typeof openModal>[0], metadata: WorldsYourStorageModalMetadata) => void | |
onOpenModal: (metadata: WorldsYourStorageModalMetadata) => void |
} as Response) | ||
}) | ||
|
||
it('should return null', async () => { |
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.
it('should return null', async () => { | |
it('should return the account holdings', async () => { |
ba26d90
to
4b835b7
Compare
Closes #2919