diff options
author | bobzel <zzzman@gmail.com> | 2022-06-20 13:40:07 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-06-20 13:40:07 -0400 |
commit | b292a055401af6236e0537cfad603016d77a535a (patch) | |
tree | 72eead2270a1cef48915beefcdee4bf48bc7e4ba /src/client/views/MainView.tsx | |
parent | c0826fb904f5d2448635b5dae1fc4337fead939e (diff) |
a bunch of changes to make some userDoc() field accesses more typesafe by going through CurrentUserUtils. Some normalization of naming/functionality in CurrentUserUtils
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index 7e3916b3f..791c64630 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -381,7 +381,7 @@ export class MainView extends React.Component { addDocTab={this.addDocTabFunc} pinToPres={emptyFunction} docViewPath={returnEmptyDoclist} - styleProvider={this._sidebarContent.proto === Doc.UserDoc().myDashboards || this._sidebarContent.proto === CurrentUserUtils.MyFilesystem ? DashboardStyleProvider : DefaultStyleProvider} + styleProvider={this._sidebarContent.proto === CurrentUserUtils.MyDashboards || this._sidebarContent.proto === CurrentUserUtils.MyFilesystem ? DashboardStyleProvider : DefaultStyleProvider} rootSelected={returnTrue} removeDocument={returnFalse} ScreenToLocalTransform={this.mainContainerXf} @@ -656,7 +656,7 @@ export class MainView extends React.Component { <GestureOverlay> {this.mainDashboardArea} </GestureOverlay> </>; case "home": return <DashboardView/>; - } })(StrCast(Doc.UserDoc().activePage)) + } })(CurrentUserUtils.ActivePage) } <PreviewCursor /> |