Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
gy4443
chemotion_eln_server
Commits
8cd31405
Commit
8cd31405
authored
Aug 17, 2015
by
Marco Sehrer
Browse files
Merge pull request #40 from ninjaconcept/ms-fix-react-markdown-require
Remove obsolte markdown-component import
parents
63473fa5
2c2a1278
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/assets/javascripts/components/SampleDetails.js
View file @
8cd31405
...
...
@@ -103,8 +103,6 @@ export default class SampleDetails extends React.Component {
let
sampleAmount
=
sample
.
amount_value
&&
sample
.
amount_unit
?
`(
${
sample
.
amount_value
}
${
sample
.
amount_unit
}
)`
:
''
;
let
svgPath
=
sample
.
molecule_svg
?
`/assets/
${
sample
.
molecule_svg
}
`
:
''
;
let
MarkdownTextarea
=
require
(
'
react-markdown-textarea
'
);
return
(
<
div
>
<
Panel
header
=
"
Sample Details
"
bsStyle
=
'
primary
'
>
...
...
@@ -140,7 +138,7 @@ export default class SampleDetails extends React.Component {
placeholder
=
{
sample
.
description
}
value
=
{
sample
.
description
}
onChange
=
{(
e
)
=>
this
.
handleDescriptionChanged
(
e
)}
rows
=
{
3
}
rows
=
{
3
}
/
>
<
ButtonToolbar
>
<
Button
bsStyle
=
"
primary
"
onClick
=
{
this
.
closeDetails
.
bind
(
this
)}
>
Back
<
/Button
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment