diff options
| author | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-09-17 12:55:38 -0400 |
|---|---|---|
| committer | aidahosa1 <aisosa_idahosa@brown.edu> | 2024-09-17 12:55:38 -0400 |
| commit | 313b3d3e67689b175cdc85426ff6af809d476622 (patch) | |
| tree | ce1d4a40bce9bbfcdb9078c9092db1cc7593393e /src/client/views/StyleProvider.tsx | |
| parent | 1568898125218538a93666cf5d83b9cf01739b49 (diff) | |
done with comments-- pull request
Diffstat (limited to 'src/client/views/StyleProvider.tsx')
| -rw-r--r-- | src/client/views/StyleProvider.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 12aaf0b39..cda39b474 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -26,6 +26,7 @@ import { FieldViewProps } from './nodes/FieldView'; import { StyleProp } from './StyleProp'; import './StyleProvider.scss'; import { IconTagBox } from './nodes/IconTagBox'; +import { DocData } from '../../fields/DocSymbols'; function toggleLockedPosition(doc: Doc) { UndoManager.RunInBatch(() => Doc.toggleLockedPosition(doc), 'toggleBackground'); @@ -368,6 +369,11 @@ export function DefaultStyleProvider(doc: Opt<Doc>, props: Opt<FieldViewProps & }; const tags = () => props?.DocumentView?.() && CollectionFreeFormDocumentView.from(props.DocumentView()) ? <TagsView View={props.DocumentView()}/> : null; + const iconTags = () => { + if (doc && doc![DocData].showIconTags) + {return (<IconTagBox doc= {doc}></IconTagBox>)} + } + return ( <> {paint()} |
