-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into features/2534_wellbore_uid_mapping
# Conflicts: # Src/WitsmlExplorer.Frontend/components/ContextMenus/FluidContextMenu.tsx # Src/WitsmlExplorer.Frontend/components/ContextMenus/LogCurveInfoContextMenu.tsx # Src/WitsmlExplorer.Frontend/components/ContextMenus/LogsContextMenu.tsx # Src/WitsmlExplorer.Frontend/components/ContextMenus/ObjectMenuItems.tsx # Src/WitsmlExplorer.Frontend/components/ContextMenus/ObjectsSidebarContextMenu.tsx # Src/WitsmlExplorer.Frontend/components/ContextMenus/TrajectoryStationContextMenu.tsx # Src/WitsmlExplorer.Frontend/components/ContextMenus/TubularComponentContextMenu.tsx # Src/WitsmlExplorer.Frontend/components/ContextMenus/WbGeometrySectionContextMenu.tsx # Src/WitsmlExplorer.Frontend/components/ContextMenus/WellContextMenu.tsx # Src/WitsmlExplorer.Frontend/components/ContextMenus/WellboreContextMenu.tsx
- Loading branch information
Showing
61 changed files
with
919 additions
and
533 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
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
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
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
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
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
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
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
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
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
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
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
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
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
40 changes: 40 additions & 0 deletions
40
...mponents/ContentViews/QueryView/components/QueryOptions/DataGridSwitch/DataGridSwitch.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,40 @@ | ||
import React, { ChangeEventHandler, FC } from "react"; | ||
import { Stack } from "@mui/material"; | ||
import { Switch } from "@equinor/eds-core-react"; | ||
import { useOperationState } from "../../../../../../hooks/useOperationState.tsx"; | ||
import { UserTheme } from "../../../../../../contexts/operationStateReducer.tsx"; | ||
import styled from "styled-components"; | ||
import { Colors } from "../../../../../../styles/Colors.tsx"; | ||
|
||
type DataGridSwitchProps = { | ||
onClick: ChangeEventHandler<HTMLInputElement>; | ||
dataGridActive: boolean; | ||
}; | ||
|
||
const DataGridSwitch: FC<DataGridSwitchProps> = ({ | ||
onClick, | ||
dataGridActive | ||
}) => { | ||
const { theme, colors } = useOperationState().operationState; | ||
const isCompact = theme === UserTheme.Compact; | ||
|
||
return ( | ||
<Stack direction="row" alignItems="center" justifyContent="flex-start"> | ||
<StyledSwitch | ||
checked={dataGridActive} | ||
onChange={onClick} | ||
size={isCompact ? "small" : "default"} | ||
label="Use data grid view" | ||
colors={colors} | ||
/> | ||
</Stack> | ||
); | ||
}; | ||
|
||
const StyledSwitch = styled(Switch)<{ colors: Colors }>` | ||
& > span:nth-child(2) { | ||
color: ${({ colors }) => colors.interactive.primaryResting}; | ||
} | ||
`; | ||
|
||
export default DataGridSwitch; |
1 change: 1 addition & 0 deletions
1
...rontend/components/ContentViews/QueryView/components/QueryOptions/DataGridSwitch/index.ts
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 @@ | ||
export { default } from "./DataGridSwitch.tsx"; |
Oops, something went wrong.