diff --git a/web/src/Components/Common/Tooltip.tsx b/web/src/Components/Common/Tooltip.tsx index 0140a52..6edf755 100644 --- a/web/src/Components/Common/Tooltip.tsx +++ b/web/src/Components/Common/Tooltip.tsx @@ -3,7 +3,7 @@ import React, { ReactElement } from 'react' // @ts-ignore import { Tooltip as EDSTooltip, Icon } from '@equinor/eds-core-react' import { help_outline } from '@equinor/eds-icons' -import { COLORS } from '../../Enums' +import { colors } from '../../colors' const Wrapper = styled.div` justify-content: center; @@ -29,7 +29,7 @@ export const Tooltip = ({ text, children }: TooltipProps): ReactElement => { {children} - + diff --git a/web/src/Components/MainBody.tsx b/web/src/Components/MainBody.tsx index 121d179..2f401d5 100644 --- a/web/src/Components/MainBody.tsx +++ b/web/src/Components/MainBody.tsx @@ -12,6 +12,7 @@ import { ErrorToast } from './Common/Toast' import { AuthContext, IAuthContext } from 'react-oauth2-code-pkce' import { Bridge, Combination, Combinations, Products } from '../Types' import useLocalStorage from '../Hooks' +import { colors } from '../colors' const MainComponentsWrapper = styled.div` padding: 16px 0 16px 0; @@ -171,7 +172,7 @@ export default ({ products }: MainBodyProps): ReactElement => { Concentration blends - +
- - Products -
- {Object.values(products).map((product: any) => { - return ( - - {product.title} - - ) - })} +
+
+ + Products +
+ {Object.values(products).map((product: any) => { + return ( + + {product.title} + + ) + })} +
+ +
+ + Pill + +
- - - - Pill - - +
+ + {loading && } +
+
@@ -269,13 +280,6 @@ const OptimizationRunner = ({ mode, value, handleUpdate, allProducts }: Optimiza
-
- - {loading && } -
{failedRun &&

Failed to run the optimizer

} diff --git a/web/src/Enums.ts b/web/src/Enums.ts index 8a8f7bf..9dd34e8 100644 --- a/web/src/Enums.ts +++ b/web/src/Enums.ts @@ -5,9 +5,4 @@ export enum BridgingOption { CERAMIC_DISCS = 'CERAMIC_DISCS', } -export enum COLORS { - primary = 'black', - secondary = '#017078', -} - export const CeramicDiscsValues = ['10', '12', '20', '40', '50', '55', '120'] diff --git a/web/src/colors.ts b/web/src/colors.ts new file mode 100644 index 0000000..a333723 --- /dev/null +++ b/web/src/colors.ts @@ -0,0 +1,5 @@ +export const colors = { + primary: '#black', + secondary: '#017078', + background: '#f7f7f7', +}