Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pubsweet-client
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
There was a problem fetching the latest pipeline status.
Show more breadcrumbs
pubsweet
pubsweet-client
Commits
a2980d5f
Commit
a2980d5f
authored
7 years ago
by
Alexandros Georgantas
Browse files
Options
Downloads
Patches
Plain Diff
Clean-up of the central modal mechanism
parent
4247ac2e
No related branches found
No related tags found
No related merge requests found
Pipeline
#3471
failed with stage
in 1 minute and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Root.js
+7
-12
7 additions, 12 deletions
src/components/Root.js
with
7 additions
and
12 deletions
src/components/Root.js
+
7
−
12
View file @
a2980d5f
...
...
@@ -3,22 +3,17 @@ import { ConnectedRouter } from 'react-router-redux'
import
{
Provider
}
from
'
react-redux
'
import
PropTypes
from
'
prop-types
'
import
{
ThemeProvider
}
from
'
react-css-themr
'
import
ModalContainer
from
'
pubsweet-component-universal-modal/
ModalContainer
'
import
ApplicationWithModal
from
'
pubsweet-component-universal-modal/
ApplicationWithModal
'
import
config
from
'
config
'
const
Root
=
({
store
,
history
,
routes
,
theme
})
=>
{
const
{
withModal
}
=
config
[
'
pubsweet-client
'
]
let
app
if
(
withModal
)
{
app
=
(
<
div
>
{
routes
}
<
ModalContainer
/>
<
/div
>
)
}
else
{
app
=
{
routes
}
}
const
app
=
withModal
?
(
<
ApplicationWithModal
>
{
routes
}
<
/ApplicationWithModal
>
)
:
(
{
routes
}
)
return
(
<
Provider
store
=
{
store
}
>
<
ConnectedRouter
history
=
{
history
}
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment