Encapsulate the row rendering logic in a separate component #104
Annotations
10 errors and 1 warning
build
Error: Input required and not supplied: server-token
|
build
lint: command (/home/runner/work/openmrs-esm-laboratory/openmrs-esm-laboratory) yarn run lint exited (1)
|
|
build:
src/completed-list/completed-list.component.tsx#L57
Replace `·fulfillerStatus·` with `⏎··fulfillerStatus,⏎`
|
|
build:
src/completed-list/completed-list.component.tsx#L143
Replace `·id:·3,·header:·t("accessionNumber",·"Accession·Number"),·key:·"accessionNumber"` with `⏎······id:·3,⏎······header:·t("accessionNumber",·"Accession·Number"),⏎······key:·"accessionNumber",⏎···`
|
build:
src/completed-list/completed-list.component.tsx#L165
Replace `·rows={tableRows}·headers={tableColumns}·useZebraStyles>` with `⏎··········rows={tableRows}⏎··········headers={tableColumns}⏎··········useZebraStyles`
|
|
|
build
Process completed with exit code 1.
|
build:
src/work-list/work-list.component.tsx#L119
The 'ResultsOrder' function makes the dependencies of useMemo Hook (at line 190) change on every render. Move it inside the useMemo callback. Alternatively, wrap the definition of 'ResultsOrder' in its own useCallback() Hook
|