Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-elife
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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.
Show more breadcrumbs
xpub
xpub-elife
Merge requests
!22
File upload page layout
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
File upload page layout
client-file-upload
into
master
Overview
8
Commits
2
Pipelines
2
Changes
12
All threads resolved!
Hide all comments
Merged
Sam Galson
requested to merge
client-file-upload
into
master
7 years ago
Overview
8
Commits
2
Pipelines
2
Changes
12
All threads resolved!
Hide all comments
Expand
1
0
Merge request reports
Compare
master
version 1
7c274241
7 years ago
master (base)
and
latest version
latest version
d312eadc
2 commits,
7 years ago
version 1
7c274241
1 commit,
7 years ago
12 files
+
181
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
app/components/submission/FileUploads.js
0 → 100644
+
42
−
0
Options
import
React
from
'
react
'
import
{
Flex
,
Box
}
from
'
grid-styled
'
import
{
Button
}
from
'
@pubsweet/ui
'
import
{
withRouter
}
from
'
react-router
'
import
FileUpload
from
'
../ui/atoms/FileUpload
'
const
FileUploads
=
({
history
})
=>
(
<
React
.
Fragment
>
<
Flex
flexDirection
=
"
column
"
>
<
Box
mb
=
{
3
}
width
=
{
1
}
>
<
FileUpload
instruction
=
"
Drag and drop or click to upload your manuscript
"
onDrop
=
{
x
=>
x
}
/
>
<
/Box
>
<
Box
mb
=
{
3
}
width
=
{
1
}
>
<
FileUpload
instruction
=
"
Drag and drop or click to upload your cover letter
"
onDrop
=
{
x
=>
x
}
/
>
<
/Box
>
<
/Flex
>
<
Flex
>
<
Box
>
<
Button
onClick
=
{()
=>
history
.
push
(
'
/submit/metadata
'
)}
primary
type
=
"
button
"
>
Next
<
/Button
>
<
/Box
>
<
Box
>
<
Button
onClick
=
{()
=>
history
.
push
(
'
/submit
'
)}
secondary
type
=
"
button
"
>
Back
<
/Button
>
<
/Box
>
<
/Flex
>
<
/React.Fragment
>
)
export
default
withRouter
(
FileUploads
)