Service Accounts: Allow unsetting token expiry date (#65862)
* Fix: toggle to switch between no expiry * Remove redudant curly brace
This commit is contained in:
@@ -109,16 +109,14 @@ export const CreateTokenModal = ({ isOpen, token, serviceAccountLogin, onCreateT
|
||||
}}
|
||||
/>
|
||||
</Field>
|
||||
{!isWithExpirationDate && (
|
||||
<Field label="Expiration">
|
||||
<RadioButtonGroup
|
||||
options={EXPIRATION_OPTIONS}
|
||||
value={isWithExpirationDate}
|
||||
onChange={setIsWithExpirationDate}
|
||||
size="md"
|
||||
/>
|
||||
</Field>
|
||||
)}
|
||||
<Field label="Expiration">
|
||||
<RadioButtonGroup
|
||||
options={EXPIRATION_OPTIONS}
|
||||
value={isWithExpirationDate}
|
||||
onChange={setIsWithExpirationDate}
|
||||
size="md"
|
||||
/>
|
||||
</Field>
|
||||
{isWithExpirationDate && (
|
||||
<Field label="Expiration date">
|
||||
<DatePickerWithInput
|
||||
|
||||
Reference in New Issue
Block a user