From d8a43b76f101a2f38ef1e3e9cbf8ec036468481d Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Sun, 22 Sep 2024 15:29:28 -0400 Subject: header comments + change to cellfield updating --- .../views/collections/collectionSchema/SchemaRowBox.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/client/views/collections/collectionSchema/SchemaRowBox.tsx') diff --git a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx index ec94a8077..b928a5c67 100644 --- a/src/client/views/collections/collectionSchema/SchemaRowBox.tsx +++ b/src/client/views/collections/collectionSchema/SchemaRowBox.tsx @@ -25,6 +25,12 @@ import { IconProp } from '@fortawesome/fontawesome-svg-core'; import { infoState } from '../collectionFreeForm/CollectionFreeFormInfoState'; import { TbShieldX } from 'react-icons/tb'; +/** + * The SchemaRowBox renders a doc as a row of cells, with each cell representing + * one field value of the doc. It mostly handles communication from the SchemaView + * to each SchemaCell, passing down necessary functions are props. + */ + interface SchemaRowBoxProps extends FieldViewProps { rowIndex: number; } @@ -51,10 +57,6 @@ export class SchemaRowBox extends ViewBoxBaseComponent() { return this.schemaView.Document; } - @computed get rowIndex() { - return this.schemaView?.rowIndex(this.Document) ?? -1; - } - componentDidMount(): void { this._props.setContentViewBox?.(this); } @@ -164,7 +166,6 @@ export class SchemaRowBox extends ViewBoxBaseComponent() { selectReference={this.selectReference} refSelectModeInfo={this.schemaView._referenceSelectMode} eqHighlightFunc={this.eqHighlightFunc} - equationHighlightRef={this.schemaView._cellHighlightColors} highlightCells={this.highlightCells} isolatedSelection={this.isolatedSelection} key={key} -- cgit v1.2.3-70-g09d2