Sha256: 86afe11740d0c7d4654e8de76a92ba817e59e6bb2550913a22f9926102a268b2
Contents?: true
Size: 890 Bytes
Versions: 3
Compression:
Stored size: 890 Bytes
Contents
import React from 'react'; import { connect } from 'react-redux'; import * as TemplateSyncActions from './NewTemplateSyncActions'; import NewTemplateSync from './NewTemplateSync'; import { selectLoadingSettings, selectError } from './NewTemplateSyncSelectors'; import withProtectedView from '../../withProtectedView'; import PermissionDenied from '../PermissionDenied'; const mapStateToProps = state => ({ loadingSettings: selectLoadingSettings(state), error: selectError(state), }); const permissionList = ( <ul className="list-unstyled"> <li>import_templates</li> <li>export_templates</li> </ul> ); export default withProtectedView( connect( mapStateToProps, TemplateSyncActions )(NewTemplateSync), PermissionDenied, props => props.userPermissions && (props.userPermissions.import || props.userPermissions.export), { doc: permissionList } );
Version data entries
3 entries across 3 versions & 1 rubygems