Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ICAT
Datahub
Commits
8fefab9e
Commit
8fefab9e
authored
Aug 28, 2020
by
Loic Huder
Browse files
Added investigation beamline and start date to parcel header
parent
caf2e6ac
Pipeline
#32238
passed with stage
in 3 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/Parcels/ParcelDetails.js
View file @
8fefab9e
...
...
@@ -112,7 +112,11 @@ function ParcelDetails(props) {
onCloseModal
=
{
handleCloseModal
}
/
>
)}
<
ParcelHeader
parcel
=
{
parcel
}
setAlert
=
{
setAlert
}
/
>
<
ParcelHeader
parcel
=
{
parcel
}
investigation
=
{
investigation
}
setAlert
=
{
setAlert
}
/
>
<
div
className
=
{
styles
.
statusRow
}
>
<
div
className
=
{
styles
.
statusCol
}
>
...
...
src/components/Parcels/ParcelHeader.js
View file @
8fefab9e
...
...
@@ -7,9 +7,10 @@ import ParcelResource from '../../resources/parcel';
import
DownloadLabelButton
from
'
./DownloadLabelButton
'
;
import
styles
from
'
./ParcelHeader.module.css
'
;
import
{
Link
}
from
'
react-router-dom
'
;
import
{
dateFormatter
}
from
'
../Investigation/utils
'
;
function
ParcelHeader
(
props
)
{
const
{
parcel
,
setAlert
}
=
props
;
const
{
parcel
,
investigation
,
setAlert
}
=
props
;
const
{
shipmentId
,
investigationId
,
_id
}
=
parcel
;
const
history
=
useHistory
();
...
...
@@ -24,7 +25,8 @@ function ParcelHeader(props) {
<
h4
className
=
{
styles
.
investigation
}
>
Investigation
{
'
'
}
<
Link
to
=
{
`/investigation/
${
investigationId
}
/shipping`
}
>
{
parcel
.
investigationName
}
{
investigation
.
name
}
-
{
dateFormatter
(
investigation
.
startDate
)}
-
{
'
'
}
{
investigation
.
visitId
.
toUpperCase
()}
<
/Link
>
<
/h4
>
<
/div
>
...
...
Write
Preview
Markdown
is supported
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