-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor VariogramResult component to match data structure.
- Loading branch information
1 parent
6ae1304
commit 3e9f84c
Showing
4 changed files
with
64 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 12 additions & 41 deletions
53
src/features/Results/CaseResult/CaseResultView/VariogramCaseResult/VariogramCaseResult.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/features/Results/CaseResult/CaseResultView/VariogramCaseResult/VariogramResultTable.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* eslint-disable max-lines-per-function */ | ||
import { Table } from '@equinor/eds-core-react'; | ||
|
||
import { GetResultDto } from '../../../../../api/generated'; | ||
|
||
// const NumberOfDecimals = 2; | ||
|
||
export const VariogramResultTable = ({ data }: { data: GetResultDto }) => { | ||
// const filterValues = (name: string) => { | ||
// return data.resultValues.filter((d) => d.name === name); | ||
// }; | ||
|
||
// const roundResultString = (value: string) => { | ||
// return parseFloat(value).toFixed(NumberOfDecimals); | ||
// }; | ||
|
||
// const channelHeightCount = filterValues('channel-height_count'); | ||
// const channelHeightMean = filterValues('channel-height_mean'); | ||
// const channelHeightSD = filterValues('channel-height_sd'); | ||
|
||
return ( | ||
<Table> | ||
<Table.Body> | ||
<Table.Row> | ||
<Table.Cell>Quality factor</Table.Cell> | ||
<Table.Cell>--Data--</Table.Cell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.Cell>Model area</Table.Cell> | ||
<Table.Cell>--Data--</Table.Cell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.Cell>Compute method</Table.Cell> | ||
<Table.Cell>--Data--</Table.Cell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.Cell>Attribute</Table.Cell> | ||
<Table.Cell>--Data--</Table.Cell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.Cell>Variogram model</Table.Cell> | ||
<Table.Cell>--Data--</Table.Cell> | ||
</Table.Row> | ||
<Table.Row> | ||
<Table.Cell>Sigma</Table.Cell> | ||
<Table.Cell>--Data--</Table.Cell> | ||
</Table.Row> | ||
</Table.Body> | ||
</Table> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters