Skip to content

Commit

Permalink
Update depth unit (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr authored Jan 30, 2024
2 parents fe6d980 + ae63393 commit 169946c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
- Disable inputs of the editor view's _borehole_ tab, when editing mode is not active or borehole status does not allow editing.
- Simplified and restructured the completion section (database, API, UI).
- Link hydrogeology observations to new completion casing.
- Use always _m MD_ as unit for borehole depth.

### Fixed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const DescriptionDisplay = props => {
sx={{
fontSize: fontSize + "px",
}}>
{item.fromDepth} m
{item.fromDepth} m MD
</Typography>
{layerHeight >= 10 && (
<>
Expand All @@ -42,7 +42,7 @@ const DescriptionDisplay = props => {
sx={{
fontSize: fontSize + "px",
}}>
{item.toDepth} m
{item.toDepth} m MD
</Typography>
</Stack>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,15 +260,15 @@ const ProfileLayersList = props => {
<div>
{itemWithValidation?.validation?.invertedDepth &&
itemWithValidation?.depth_from}{" "}
m
m MD
</div>
}
/>
) : (
<NumericFormat
value={itemWithValidation?.depth_from}
thousandSeparator="'"
suffix=" m"
suffix=" m MD"
displayType="text"
/>
)}
Expand Down Expand Up @@ -318,15 +318,15 @@ const ProfileLayersList = props => {
<div>
{itemWithValidation?.validation?.invertedDepth &&
itemWithValidation?.depth_to}{" "}
m
m MD
</div>
}
/>
) : (
<NumericFormat
value={itemWithValidation?.depth_to}
thousandSeparator="'"
suffix=" m"
suffix=" m MD"
displayType="text"
/>
)}
Expand Down

0 comments on commit 169946c

Please sign in to comment.