F #3951: Fix provider configure (#850)

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2021-02-22 10:36:25 +01:00
1 parent 657933593e
commit c8346f97ba
14 files changed
+7 -6

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

@@ -1,4 +1,4 @@
import React, { memo, useState, useEffect, useMemo } from 'react'
import React, { memo, useMemo } from 'react'
import PropTypes from 'prop-types'
import ProviderIcon from '@material-ui/icons/Public'
@@ -1,7 +1,7 @@
import { makeStyles } from '@material-ui/core'
export default makeStyles(theme => ({
root: ({ isSelected, disableFilterImage }) => ({
root: ({ isSelected }) => ({
height: '100%',
transition: theme.transitions.create(
['background-color', 'box-shadow'], { duration: '0.2s' }
@@ -15,8 +15,7 @@ export default makeStyles(theme => ({
'& .badge': {
color: theme.palette.secondary.main,
backgroundColor: theme.palette.secondary.contrastText
},
'& $subheader': { color: 'inherit' }
}
})
}),
actionArea: {
@@ -64,6 +63,8 @@ export default makeStyles(theme => ({
: theme.palette.text.primary
},
subheader: {
color: ({ isSelected }) =>
isSelected ? 'inherit' : theme.palette.text.secondary,
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'initial',
@@ -104,7 +104,7 @@ function ProviderCreateForm () {
const {
PLAIN: { location_key: locationKey } = {},
PROVISION_BODY: {
connection: { [locationKey]: connectionEditable },
connection: { [locationKey]: _, ...connectionEditable },
description,
name
}
@@ -17,7 +17,7 @@ function ProvisionCreateForm () {
const [uuid, setUuid] = useState(undefined)
const { getProvision } = useSocket()
const { getProviders, createProvision, providers } = useProvision()
const { getProviders, createProvision } = useProvision()
const { data, fetchRequest, loading, error } = useFetch(getProviders)