diff options
| author | bobzel <zzzman@gmail.com> | 2020-12-03 10:55:05 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-12-03 10:55:05 -0500 |
| commit | b3d1b60ac867a472ba791f57c8eb2d7afbb95767 (patch) | |
| tree | 4e9530d03ea91ed79770743901c9dbcbc3a16a16 /src/client/views/nodes/FontIconBox.tsx | |
| parent | 2770f8609818b11b3073ded0bec437abc333f37f (diff) | |
changed parameters for style provider to use documentViewProps instead of renderDepth
Diffstat (limited to 'src/client/views/nodes/FontIconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FontIconBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FontIconBox.tsx b/src/client/views/nodes/FontIconBox.tsx index dfbd89c88..c9ee4126e 100644 --- a/src/client/views/nodes/FontIconBox.tsx +++ b/src/client/views/nodes/FontIconBox.tsx @@ -61,7 +61,7 @@ export class FontIconBox extends DocComponent<FieldViewProps, FontIconDocument>( render() { const label = StrCast(this.rootDoc.label, StrCast(this.rootDoc.title)); const color = StrCast(this.layoutDoc.color, this._foregroundColor); - const backgroundColor = this.props.styleProvider?.(this.rootDoc, this.props.renderDepth, "backgroundColor", this.props.layerProvider); + const backgroundColor = this.props.styleProvider?.(this.rootDoc, this.props, "backgroundColor", this.props.layerProvider); const shape = StrCast(this.layoutDoc.iconShape, label ? "round" : "circle"); const icon = StrCast(this.dataDoc.icon, "user") as any; const presSize = shape === 'round' ? 25 : 30; |
