diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-12 10:43:25 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-12 10:43:25 -0500 |
| commit | fd54add240b41b3c2ac5f5265438effec045c9d4 (patch) | |
| tree | 483aabf6b1877ec921790a6f3c2458566f04e5d5 /src/client/views/StyleProvider.tsx | |
| parent | 14107b535800bc8eeb237f228d876fd8061c2394 (diff) | |
fixed props => _props referneces
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
| -rw-r--r-- | src/client/views/StyleProvider.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index f3d515364..3e7e4be90 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -170,7 +170,7 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<DocumentViewProps const docColor: Opt<string> = StrCast(doc?.[fieldKey + 'color'], StrCast(doc?._color)); if (docColor) return docColor; const docView = props?.DocumentView?.(); - const backColor = backgroundCol() || docView?.props.styleProvider?.(docView.props.treeViewDoc, docView.props, StyleProp.BackgroundColor); + const backColor = backgroundCol() || docView?._props.styleProvider?.(docView._props.treeViewDoc, docView._props, StyleProp.BackgroundColor); return backColor ? lightOrDark(backColor) : undefined; case StyleProp.BorderRounding: return StrCast(doc?.[fieldKey + 'borderRounding'], StrCast(doc?.layout_borderRounding, doc?._type_collection === CollectionViewType.Pile ? '50%' : '')); |
