wip: add report form page (not wired yet)
Ported stroy-bot-report form saved before tests are written. Not reachable from the app until save/mode tests cover the delete-and- recreate algorithm. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import * as React from 'react';
|
||||
import styles from './ReportPage.module.scss';
|
||||
|
||||
interface Props {
|
||||
id: string;
|
||||
value: string;
|
||||
placeholder: string;
|
||||
readOnly: boolean;
|
||||
onOpen: () => void;
|
||||
}
|
||||
|
||||
/** Поле-кнопка: показывает выбранное значение и открывает пикер. */
|
||||
export const PickerField: React.FC<Props> = ({ id, value, placeholder, readOnly, onOpen }) => (
|
||||
<button
|
||||
id={id}
|
||||
type="button"
|
||||
className={value ? styles.pickerValue : `${styles.pickerValue} ${styles.pickerValueEmpty}`}
|
||||
disabled={readOnly}
|
||||
onClick={onOpen}
|
||||
>
|
||||
{value || placeholder}
|
||||
</button>
|
||||
);
|
||||
Reference in New Issue
Block a user