Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
update App customizations
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Jan 11, 2022
1 parent 2c2a0f0 commit 30369c5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/customizations/volto/components/theme/App/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import jwtDecode from 'jwt-decode';
import { compose } from 'redux';
import { asyncConnect } from '@plone/volto/helpers';
import { Segment, Container } from 'semantic-ui-react';
Expand All @@ -17,6 +18,7 @@ import trim from 'lodash/trim';
import cx from 'classnames';
import config from '@plone/volto/registry';
import { PluggablesProvider } from '@plone/volto/components/manage/Pluggable';
import LockingToastsFactory from '@plone/volto/components/manage/LockingToastsFactory/LockingToastsFactory';

import Error from '@plone/volto/error';

Expand Down Expand Up @@ -205,6 +207,10 @@ class App extends Component {
</Container>
</Segment>
<Footer />
<LockingToastsFactory
content={this.props.content}
user={this.props.userId}
/>
<ToastContainer
position={toast.POSITION.BOTTOM_CENTER}
hideProgressBar
Expand Down Expand Up @@ -306,6 +312,9 @@ export default compose(
connect(
(state, props) => ({
pathname: props.location.pathname,
userId: state.userSession.token
? jwtDecode(state.userSession.token).sub
: '',
token: state.userSession.token,
content: state.content.data,
apiError: state.apierror.error,
Expand Down

0 comments on commit 30369c5

Please sign in to comment.