mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
refactor(settings): migrate helm cert panel to react [EE-5505] (#9132)
This commit is contained in:
parent
c452de82b7
commit
f293ea41d3
19 changed files with 268 additions and 70 deletions
|
@ -14,6 +14,7 @@ export interface Props {
|
|||
required?: boolean;
|
||||
inputId: string;
|
||||
color?: ComponentProps<typeof Button>['color'];
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export function FileUploadField({
|
||||
|
@ -24,6 +25,7 @@ export function FileUploadField({
|
|||
required = false,
|
||||
inputId,
|
||||
color = 'primary',
|
||||
name,
|
||||
}: Props) {
|
||||
const fileRef = createRef<HTMLInputElement>();
|
||||
|
||||
|
@ -38,6 +40,7 @@ export function FileUploadField({
|
|||
className={styles.fileInput}
|
||||
onChange={changeHandler}
|
||||
aria-label="file-input"
|
||||
name={name}
|
||||
/>
|
||||
<Button
|
||||
size="small"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue