Add error handling to side nav components
parent
2051383c8f
commit
567cdf8512
|
@ -11,7 +11,9 @@ import FancyScrollbar from 'shared/components/FancyScrollbar'
|
|||
import {meChangeOrganizationAsync} from 'shared/actions/auth'
|
||||
|
||||
import {SUPERADMIN_ROLE} from 'src/auth/Authorized'
|
||||
import {ErrorHandling} from 'src/shared/decorators/errors'
|
||||
|
||||
@ErrorHandling
|
||||
class UserNavBlock extends Component {
|
||||
handleChangeCurrentOrganization = organizationID => async () => {
|
||||
const {router, links, meChangeOrganization} = this.props
|
||||
|
|
|
@ -15,6 +15,7 @@ import {
|
|||
|
||||
import {DEFAULT_HOME_PAGE} from 'src/shared/constants'
|
||||
import {Params, Location, Links, Me} from 'src/types/sideNav'
|
||||
import {ErrorHandling} from 'src/shared/decorators/errors'
|
||||
|
||||
interface Props {
|
||||
params: Params
|
||||
|
@ -26,6 +27,7 @@ interface Props {
|
|||
me: Me
|
||||
}
|
||||
|
||||
@ErrorHandling
|
||||
class SideNav extends PureComponent<Props> {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
|
|
|
@ -2,6 +2,7 @@ import React, {Component} from 'react'
|
|||
import PropTypes from 'prop-types'
|
||||
import {connect} from 'react-redux'
|
||||
import {bindActionCreators} from 'redux'
|
||||
import {ErrorHandling} from 'src/shared/decorators/errors'
|
||||
|
||||
import {
|
||||
removeAndLoadSources,
|
||||
|
@ -22,6 +23,7 @@ import {
|
|||
|
||||
const V_NUMBER = VERSION // eslint-disable-line no-undef
|
||||
|
||||
@ErrorHandling
|
||||
class ManageSources extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
|
|
|
@ -26,7 +26,9 @@ import {
|
|||
notifySourceUdpated,
|
||||
notifySourceUdpateFailed,
|
||||
} from 'shared/copy/notifications'
|
||||
import {ErrorHandling} from 'src/shared/decorators/errors'
|
||||
|
||||
@ErrorHandling
|
||||
class SourcePage extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
|
|
Loading…
Reference in New Issue