diff --git a/package-lock.json b/package-lock.json index 311ea19f..de0d17c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wlan-cloud-owprov-ui", - "version": "2.11.0(56)", + "version": "2.11.0(57)", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wlan-cloud-owprov-ui", - "version": "2.11.0(56)", + "version": "2.11.0(57)", "license": "ISC", "dependencies": { "@chakra-ui/anatomy": "^2.1.1", diff --git a/package.json b/package.json index 52ee9079..c6b648fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wlan-cloud-owprov-ui", - "version": "2.11.0(56)", + "version": "2.11.0(57)", "description": "", "main": "index.tsx", "scripts": { diff --git a/src/components/Modals/Resources/Sections/OpenRoamingSsid/OpenRoamingEncryption/Radius/Radius.tsx b/src/components/Modals/Resources/Sections/OpenRoamingSsid/OpenRoamingEncryption/Radius/Radius.tsx index 443821c0..6ed36f4f 100644 --- a/src/components/Modals/Resources/Sections/OpenRoamingSsid/OpenRoamingEncryption/Radius/Radius.tsx +++ b/src/components/Modals/Resources/Sections/OpenRoamingSsid/OpenRoamingEncryption/Radius/Radius.tsx @@ -1,18 +1,15 @@ import React from 'react'; -import { Flex, FormControl, FormLabel, Heading, SimpleGrid, Switch } from '@chakra-ui/react'; -import NumberField from 'components/FormFields/NumberField'; +import { Flex, Heading, SimpleGrid } from '@chakra-ui/react'; import StringField from 'components/FormFields/StringField'; import ToggleField from 'components/FormFields/ToggleField'; type Props = { editing: boolean; namePrefix: string; - onAccountingChange: (e: React.ChangeEvent) => void; - isAccountingEnabled: boolean; // eslint-disable-next-line react/no-unused-prop-types isPasspoint?: boolean; }; -const OpenRoamingRadiusForm = ({ editing, namePrefix, onAccountingChange, isAccountingEnabled }: Props) => ( +const OpenRoamingRadiusForm = ({ editing, namePrefix }: Props) => ( <>
@@ -21,39 +18,6 @@ const OpenRoamingRadiusForm = ({ editing, namePrefix, onAccountingChange, isAcco
- - - Enable Accounting - - - - {isAccountingEnabled && ( - - - - - - )} { - const { value: accounting, onChange: setAccounting } = useFastField({ name: `${namePrefix}.accounting` }); - - const onEnabledAccountingChange = (e: React.ChangeEvent) => { - if (e.target.checked) { - setAccounting({ - host: '192.168.178.192', - port: 1813, - secret: 'YOUR_SECRET', - }); - } else { - setAccounting(undefined); - } - }; - - const isAccountingEnabled = useMemo(() => accounting !== undefined, [accounting !== undefined]); - - return ( - - ); -}; +const OpenRoamingRadius = ({ editing, namePrefix, isPasspoint }: Props) => ( + +); export default React.memo(OpenRoamingRadius); diff --git a/src/components/Modals/Resources/Sections/OpenRoamingSsid/index.tsx b/src/components/Modals/Resources/Sections/OpenRoamingSsid/index.tsx index a0682a30..db1031a2 100644 --- a/src/components/Modals/Resources/Sections/OpenRoamingSsid/index.tsx +++ b/src/components/Modals/Resources/Sections/OpenRoamingSsid/index.tsx @@ -21,7 +21,6 @@ const CONSORTIUMS = { generic: [], radsec: [], } as const; - const DEFAULT_VALUE = (defaultEndpoint?: RadiusEndpoint) => ({ 'bss-mode': 'ap', 'dtim-period': 2, @@ -32,11 +31,6 @@ const DEFAULT_VALUE = (defaultEndpoint?: RadiusEndpoint) => ({ radius: { __radiusEndpoint: defaultEndpoint?.id ?? '', 'chargeable-user-id': true, - accounting: { - host: 'example.com', - port: '1813', - secret: 'Secret', - }, }, 'pass-point': { 'venue-group': 1,