diff --git a/new-lamassu-admin/src/components/booleanPropertiesTable/BooleanPropertiesTable.js b/new-lamassu-admin/src/components/booleanPropertiesTable/BooleanPropertiesTable.js index 8df0225b..346c88ab 100644 --- a/new-lamassu-admin/src/components/booleanPropertiesTable/BooleanPropertiesTable.js +++ b/new-lamassu-admin/src/components/booleanPropertiesTable/BooleanPropertiesTable.js @@ -6,7 +6,7 @@ import React, { useState, memo } from 'react' import * as Yup from 'yup' import PromptWhenDirty from 'src/components/PromptWhenDirty' -import { Link } from 'src/components/buttons' +import { Link, IconButton } from 'src/components/buttons' import { RadioGroup } from 'src/components/inputs/formik' import { Table, TableBody, TableRow, TableCell } from 'src/components/table' import { H4 } from 'src/components/typography' @@ -70,11 +70,11 @@ const BooleanPropertiesTable = memo( ) : ( -
- -
+ setEditing(true)}> + {disabled ? : } + )} diff --git a/new-lamassu-admin/src/components/buttons/IconButton.js b/new-lamassu-admin/src/components/buttons/IconButton.js index 0c58eb24..f208c25f 100644 --- a/new-lamassu-admin/src/components/buttons/IconButton.js +++ b/new-lamassu-admin/src/components/buttons/IconButton.js @@ -1,6 +1,8 @@ import { makeStyles, IconButton as IconB } from '@material-ui/core' import React from 'react' +import { comet } from 'src/styling/variables' + const styles = { label: ({ size }) => ({ width: size, @@ -12,6 +14,15 @@ const styles = { }, '&:hover': { backgroundColor: 'inherit' + }, + '&:hover rect': { + stroke: comet + }, + '&:hover polygon': { + stroke: comet + }, + '&:hover path': { + stroke: comet } } } diff --git a/new-lamassu-admin/src/pages/OperatorInfo/ContactInfo.js b/new-lamassu-admin/src/pages/OperatorInfo/ContactInfo.js index e4ffec00..d1031281 100644 --- a/new-lamassu-admin/src/pages/OperatorInfo/ContactInfo.js +++ b/new-lamassu-admin/src/pages/OperatorInfo/ContactInfo.js @@ -9,7 +9,7 @@ import * as Yup from 'yup' import ErrorMessage from 'src/components/ErrorMessage' import PromptWhenDirty from 'src/components/PromptWhenDirty' -import { Link } from 'src/components/buttons' +import { Link, IconButton } from 'src/components/buttons' import Switch from 'src/components/inputs/base/Switch' import { TextInput } from 'src/components/inputs/formik' import { P, H4, Info3, Label1, Label2, Label3 } from 'src/components/typography' @@ -210,11 +210,11 @@ const ContactInfo = ({ wizard }) => {

Info card

{!editing && ( -
- -
+ setEditing(true)}> + + )}
p': { - marginTop: 0 + alignItems: 'center', + position: 'relative', + flex: 'wrap' + }, + transparentButton: { + '& > *': { + margin: 'auto 12px' }, - '& > div': { - marginLeft: 20, - '& > button': { - border: 'none', - backgroundColor: 'transparent', - cursor: 'pointer' - } + '& button': { + border: 'none', + backgroundColor: 'transparent', + cursor: 'pointer' } }, section: { diff --git a/new-lamassu-admin/src/pages/OperatorInfo/TermsConditions.js b/new-lamassu-admin/src/pages/OperatorInfo/TermsConditions.js index a9efd402..e221fd4f 100644 --- a/new-lamassu-admin/src/pages/OperatorInfo/TermsConditions.js +++ b/new-lamassu-admin/src/pages/OperatorInfo/TermsConditions.js @@ -9,7 +9,7 @@ import * as Yup from 'yup' import ErrorMessage from 'src/components/ErrorMessage' import PromptWhenDirty from 'src/components/PromptWhenDirty' -import { Link } from 'src/components/buttons' +import { Link, IconButton } from 'src/components/buttons' import { Switch } from 'src/components/inputs' import { TextInput } from 'src/components/inputs/formik' import { H4, Info2, Info3, Label2, Label3 } from 'src/components/typography' @@ -190,11 +190,11 @@ const TermsConditions = () => {
Info card {!editing && ( -
- -
+ setEditing(true)}> + + )}