mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-18 20:09:08 +02:00
f669f96d49
* chore: update changelog * 4.0.0-alpha.4 * wip: frontend should understand rbac permissions * move all feature components to hasAccess * fix: remove all change permissions * fix all the tests * fix all the tests x2 * fix snapshot for node 12 * fine tune perms a bit * refactor: rewrite to ts * refactor: use admin constant * fix: import Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
20 lines
418 B
JavaScript
20 lines
418 B
JavaScript
import { connect } from 'react-redux';
|
|
import ErrorComponent from './error-component';
|
|
import { muteError } from '../../store/error/actions';
|
|
|
|
const mapDispatchToProps = {
|
|
muteError,
|
|
};
|
|
|
|
const mapStateToProps = state => {
|
|
return {
|
|
errors: state.error
|
|
.get('list')
|
|
.toArray()
|
|
.reverse()
|
|
}
|
|
|
|
};
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(ErrorComponent);
|