(props: {
onChange: (service: ServiceType) => void;
value: ServiceType;
})
| 452 | } |
| 453 | |
| 454 | function ServicePicker(props: { |
| 455 | onChange: (service: ServiceType) => void; |
| 456 | value: ServiceType; |
| 457 | }) { |
| 458 | const { onChange, value } = props; |
| 459 | |
| 460 | return ( |
| 461 | <div className={cl("service-grid")}> |
| 462 | {serviceOptions.map(option => ( |
| 463 | <button |
| 464 | key={option.value} |
| 465 | type="button" |
| 466 | className={cl("service-option")} |
| 467 | data-selected={option.value === value} |
| 468 | onClick={() => onChange(option.value)} |
| 469 | > |
| 470 | <span className={cl("service-option-label")}>{option.label}</span> |
| 471 | </button> |
| 472 | ))} |
| 473 | </div> |
| 474 | ); |
| 475 | } |
| 476 | |
| 477 | function FallbackOrderSettings() { |
| 478 | const update = useForceUpdater(); |
nothing calls this directly
no outgoing calls
no test coverage detected