mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 07:26:45 +00:00
Tooltip
This commit is contained in:
+23
-1
@@ -30,7 +30,29 @@ export const AwsParameterStoreSyncFields = () => {
|
|||||||
/>
|
/>
|
||||||
<Controller
|
<Controller
|
||||||
render={({ field: { value, onChange }, fieldState: { error } }) => (
|
render={({ field: { value, onChange }, fieldState: { error } }) => (
|
||||||
<FormControl isError={Boolean(error)} errorText={error?.message} label="Path">
|
<FormControl
|
||||||
|
isError={Boolean(error)}
|
||||||
|
errorText={error?.message}
|
||||||
|
label="Path"
|
||||||
|
tooltipText={
|
||||||
|
<>
|
||||||
|
The path is required and will be prepended to the key schema. For example, if you
|
||||||
|
have a path of{" "}
|
||||||
|
<code className="rounded bg-mineshaft-600 px-0.5 py-px text-sm text-mineshaft-300">
|
||||||
|
/demo/path/
|
||||||
|
</code>{" "}
|
||||||
|
and a key schema of{" "}
|
||||||
|
<code className="rounded bg-mineshaft-600 px-0.5 py-px text-sm text-mineshaft-300">
|
||||||
|
INFISICAL_{"{{secretKey}}"}
|
||||||
|
</code>
|
||||||
|
, then the result will be{" "}
|
||||||
|
<code className="rounded bg-mineshaft-600 px-0.5 py-px text-sm text-mineshaft-300">
|
||||||
|
/demo/path/INFISICAL_{"{{secretKey}}"}
|
||||||
|
</code>
|
||||||
|
</>
|
||||||
|
}
|
||||||
|
tooltipClassName="max-w-lg"
|
||||||
|
>
|
||||||
<Input value={value} onChange={onChange} placeholder="Path..." />
|
<Input value={value} onChange={onChange} placeholder="Path..." />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user