aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/SchemaRowBox.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-09-22 15:29:28 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-09-22 15:29:28 -0400
commitd8a43b76f101a2f38ef1e3e9cbf8ec036468481d (patch)
tree08fea673e890c1e3b5c22d7a58d6c06c45fdc1fe /src/client/views/collections/collectionSchema/SchemaRowBox.tsx
parent24c6c3f0c9b43059cd013d344dfa065969f73389 (diff)
header comments + change to cellfield updating
Diffstat (limited to 'src/client/views/collections/collectionSchema/SchemaRowBox.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/SchemaRowBox.tsx11
1 files changed, 6 insertions, 5 deletions
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<SchemaRowBoxProps>() {
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<SchemaRowBoxProps>() {
selectReference={this.selectReference}
refSelectModeInfo={this.schemaView._referenceSelectMode}
eqHighlightFunc={this.eqHighlightFunc}
- equationHighlightRef={this.schemaView._cellHighlightColors}
highlightCells={this.highlightCells}
isolatedSelection={this.isolatedSelection}
key={key}