fix(striker-ui): add required icon to network init form inputs

main
Tsu-ba-me 2 years ago
parent 4175759b56
commit 899484ae10
  1. 3
      striker-ui/components/NetworkInitForm.tsx

@ -283,6 +283,7 @@ const NetworkForm: FC<{
<SelectWithLabel <SelectWithLabel
id={`network-${inputUUID}-name`} id={`network-${inputUUID}-name`}
isReadOnly={!isNetworkOptional} isReadOnly={!isNetworkOptional}
inputLabelProps={{ isNotifyRequired: true }}
label="Network name" label="Network name"
selectItems={Object.entries(NETWORK_TYPES).map( selectItems={Object.entries(NETWORK_TYPES).map(
([networkType, networkTypeName]) => { ([networkType, networkTypeName]) => {
@ -392,6 +393,7 @@ const NetworkForm: FC<{
input={ input={
<OutlinedInputWithLabel <OutlinedInputWithLabel
id={`network-${inputUUID}-ip-address`} id={`network-${inputUUID}-ip-address`}
inputLabelProps={{ isNotifyRequired: true }}
label="IP address" label="IP address"
value={ipAddress} value={ipAddress}
/> />
@ -402,6 +404,7 @@ const NetworkForm: FC<{
input={ input={
<OutlinedInputWithLabel <OutlinedInputWithLabel
id={`network-${inputUUID}-subnet-mask`} id={`network-${inputUUID}-subnet-mask`}
inputLabelProps={{ isNotifyRequired: true }}
label="Subnet mask" label="Subnet mask"
value={subnetMask} value={subnetMask}
/> />

Loading…
Cancel
Save