(props: { label?: string; placeholder?: string })
| 194 | // --------------------------------------------------------------------------- |
| 195 | |
| 196 | function NameField(props: { label?: string; placeholder?: string }) { |
| 197 | const { state, actions } = useSecretForm(); |
| 198 | const inputId = useId(); |
| 199 | return ( |
| 200 | <Field> |
| 201 | <FieldLabel htmlFor={inputId}>{props.label ?? "Name"}</FieldLabel> |
| 202 | <Input |
| 203 | id={inputId} |
| 204 | value={state.name} |
| 205 | onChange={(e) => actions.setName((e.target as HTMLInputElement).value)} |
| 206 | placeholder={props.placeholder ?? "GitHub PAT"} |
| 207 | /> |
| 208 | </Field> |
| 209 | ); |
| 210 | } |
| 211 | |
| 212 | function IdField(props: { placeholder?: string }) { |
| 213 | const { actions, meta } = useSecretForm(); |
nothing calls this directly
no test coverage detected