Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
({ firebase }) => ({
auth: pathToJS(firebase, 'auth'),
todos: dataToJS(firebase, 'todos')
// todos: populatedDataToJS(firebase, '/todos', populates), // if populating
// todos: orderedToJS(firebase, 'todos'), // if using ordering such as orderByChild
})
)
@connect(({ firebase }) => ({
authError: pathToJS(firebase, 'authError')
}))
export default class FirebaseLogin extends Component {
@connect(({ firebase }) => ({
isInitializing: pathToJS(firebase, 'isInitializing'),
auth: pathToJS(firebase, 'auth')
}))
export default class LoginWall extends PureComponent {
({ firebase }) => ({
authError: pathToJS(firebase, 'authError')
})
)
@connect(({ firebase }) => ({
authError: pathToJS(firebase, 'authError')
}))
export default class Signup extends Component {
@connect(({ firebase }) => ({
isInitializing: pathToJS(firebase, 'isInitializing'),
auth: pathToJS(firebase, 'auth')
}))
export default class LoginWall extends PureComponent {
({ firebase, web3 }) => ({
auth: pathToJS(firebase, 'auth'),
account: pathToJS(firebase, 'profile'),
web3: web3
}),
{
({ firebase, faucet }) => ({
authError: pathToJS(firebase, 'authError'),
auth: pathToJS(firebase, 'auth'),
account: pathToJS(firebase, 'profile'),
faucet: faucet
})
)
@connect(({ firebase }, { params }) => ({
projects: populatedDataToJS(firebase, 'projects', populates),
auth: pathToJS(firebase, 'auth')
}))
export default class Projects extends Component {
({ firebase }) => ({
initialValues: pathToJS(firebase, 'profile')
}),
)(form)