aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/StyleProvider.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-09-17 22:11:22 -0400
committerbobzel <zzzman@gmail.com>2024-09-17 22:11:22 -0400
commit4e0ea65c08ff07429cb32f3907268206c80889fa (patch)
treefeb04e318ba52bb41b22f3cb6f94f4b21c35b5a3 /src/client/views/StyleProvider.tsx
parent31321f6def982305ea89cdfe5a873b942060eb84 (diff)
linted cardView files after merge.
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
-rw-r--r--src/client/views/StyleProvider.tsx10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx
index 13fef101a..eb434db40 100644
--- a/src/client/views/StyleProvider.tsx
+++ b/src/client/views/StyleProvider.tsx
@@ -326,7 +326,6 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<FieldViewProps &
type={Type.TERT}
dropdownType={DropdownType.CLICK}
fillWidth
- // eslint-disable-next-line react/no-unstable-nested-components
iconProvider={() => <div className='styleProvider-filterShift'><FaFilter/></div>}
closeOnSelect
setSelectedVal={((dvValue: unknown) => {
@@ -366,12 +365,9 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<FieldViewProps &
</Tooltip>
);
};
- const tags = () => props?.DocumentView?.() ? <TagsView Views={[props.DocumentView()]}/> : null;
-
- const iconTags = () => {
- if (doc && doc![DocData].showIconTags)
- {return (<IconTagBox doc= {doc}></IconTagBox>)}
- }
+ const tags = () => docView?.() ? <TagsView Views={[docView?.()]}/> : null;
+ const iconTags = () => doc?.[DocData].showIconTags ? <IconTagBox doc= {doc}/> : null;
+
return (
<>
{paint()}