mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 05:27:48 +00:00
Update SecretItem.tsx
This commit is contained in:
-23
@@ -487,29 +487,6 @@ export const SecretItem = memo(
|
|||||||
placeholder={error?.message}
|
placeholder={error?.message}
|
||||||
isError={Boolean(error)}
|
isError={Boolean(error)}
|
||||||
onKeyUp={() => trigger("key")}
|
onKeyUp={() => trigger("key")}
|
||||||
warning={
|
|
||||||
field.value?.includes(" ") ? (
|
|
||||||
<Tooltip
|
|
||||||
className={"w-full max-w-72"}
|
|
||||||
content={
|
|
||||||
<div>
|
|
||||||
Secret key contains whitespaces.
|
|
||||||
<br />
|
|
||||||
<br /> If this is the desired format, you need to provide it as{" "}
|
|
||||||
<code className="rounded-md bg-mineshaft-500 px-1 py-0.5">
|
|
||||||
{encodeURIComponent(field.value.trim())}
|
|
||||||
</code>{" "}
|
|
||||||
when making API requests.
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<FontAwesomeIcon
|
|
||||||
icon={faWarning}
|
|
||||||
className="absolute right-0 mr-3 text-yellow-600 opacity-60"
|
|
||||||
/>
|
|
||||||
</Tooltip>
|
|
||||||
) : undefined
|
|
||||||
}
|
|
||||||
{...field}
|
{...field}
|
||||||
className="w-full px-0 placeholder:text-red-500 focus:text-bunker-100 focus:ring-transparent"
|
className="w-full px-0 placeholder:text-red-500 focus:text-bunker-100 focus:ring-transparent"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user