(props: { label?: string; placeholder?: string })
| 210 | // --------------------------------------------------------------------------- |
| 211 | |
| 212 | function NameField(props: { label?: string; placeholder?: string }) { |
| 213 | const { state, actions } = useSecretForm(); |
| 214 | const inputId = useId(); |
| 215 | return ( |
| 216 | <Field> |
| 217 | <FieldLabel htmlFor={inputId}>{props.label ?? "Name"}</FieldLabel> |
| 218 | <Input |
| 219 | id={inputId} |
| 220 | value={state.name} |
| 221 | onChange={(e) => actions.setName((e.target as HTMLInputElement).value)} |
| 222 | placeholder={props.placeholder ?? "GitHub PAT"} |
| 223 | /> |
| 224 | </Field> |
| 225 | ); |
| 226 | } |
| 227 | |
| 228 | function IdField(props: { placeholder?: string }) { |
| 229 | const { actions, meta } = useSecretForm(); |
nothing calls this directly
no test coverage detected