Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xpub-epmc
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Literature-services
public-projects
xpub-epmc
Commits
f71d7b4f
Commit
f71d7b4f
authored
6 years ago
by
ahamelers
Browse files
Options
Downloads
Patches
Plain Diff
link color fixed in search result link; DRY
parent
ccb5eee8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!11
Submission Wizard
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/components/PubMedSearch.jsx
+11
-19
11 additions, 19 deletions
app/components/PubMedSearch.jsx
with
11 additions
and
19 deletions
app/components/PubMedSearch.jsx
+
11
−
19
View file @
f71d7b4f
...
...
@@ -3,9 +3,8 @@ import ReactDOM from 'react-dom'
import
{
withRouter
}
from
'
react-router-dom
'
import
styled
from
'
styled-components
'
import
{
th
}
from
'
@pubsweet/ui-toolkit
'
import
{
Button
,
Icon
,
H2
,
Link
}
from
'
@pubsweet/ui
'
import
{
Action
,
Button
,
Icon
,
H2
,
Link
}
from
'
@pubsweet/ui
'
import
{
A
,
B
,
Buttons
,
Close
,
...
...
@@ -27,7 +26,7 @@ const SearchArea = styled.div`
`
const
Notice
=
styled
.
p
`
margin: 0 auto calc(
${
th
(
'
gridUnit
'
)}
* 3);
a
{
button
{
display: flex;
align-items: center;
justify-content: flex-start;
...
...
@@ -218,22 +217,15 @@ class PubMedSearch extends React.Component {
<
Notice
>
<
B
>
Select your citation from results
</
B
>
<
br
/>
{
this
.
state
.
hitcount
===
0
&&
(
<
A
onClick
=
{
()
=>
this
.
setState
({
unmatched
:
true
})
}
>
<
Icon
color
=
"currentColor"
size
=
{
2
}
>
info
</
Icon
>
{
'
'
}
No results found. Click to enter citation manually.
</
A
>
)
}
{
this
.
state
.
results
.
length
>
0
&&
(
<
A
onClick
=
{
()
=>
this
.
setState
({
unmatched
:
true
})
}
>
<
Icon
color
=
"currentColor"
size
=
{
2
}
>
info
</
Icon
>
{
'
'
}
Manuscript not in results? Click to enter citation manually.
</
A
>
)
}
<
Action
onClick
=
{
()
=>
this
.
setState
({
unmatched
:
true
})
}
>
<
Icon
color
=
"currentColor"
size
=
{
2
}
>
info
</
Icon
>
{
this
.
state
.
hitcount
===
0
&&
'
No results found. Click to enter citation manually.
'
}
{
this
.
state
.
results
.
length
>
0
&&
'
Manuscript not in results? Click to enter citation manually
'
}
</
Action
>
</
Notice
>
)
}
{
this
.
state
.
results
.
length
>
0
&&
(
...
...
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