diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-11 00:41:05 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-11 00:41:05 -0500 |
| commit | be2569d8640f1693eb27f124ad3dd8062ada4837 (patch) | |
| tree | fe12bc1e68210d21971ebd893da4e2948f3b3966 /src/client/views/DashboardView.tsx | |
| parent | 380ee1acac1c0b7972d7d423cf804af146dc0edf (diff) | |
more updates to mobx 6. updated typescript to v5. updated pdf-dist
Diffstat (limited to 'src/client/views/DashboardView.tsx')
| -rw-r--r-- | src/client/views/DashboardView.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx index 04fb1fe80..35c0d617b 100644 --- a/src/client/views/DashboardView.tsx +++ b/src/client/views/DashboardView.tsx @@ -1,6 +1,6 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Button, ColorPicker, EditableText, Size, Type } from 'browndash-components'; -import { action, computed, observable } from 'mobx'; +import { action, computed, makeObservable, observable } from 'mobx'; import { observer } from 'mobx-react'; import * as React from 'react'; import { FaPlus } from 'react-icons/fa'; @@ -39,6 +39,11 @@ enum DashboardGroup { export class DashboardView extends React.Component { public static _urlState: HistoryUtil.DocUrl; + constructor(props: any) { + super(props); + makeObservable(this); + } + @observable private openModal = false; @observable private selectedDashboardGroup = DashboardGroup.MyDashboards; @observable private newDashboardName = ''; |
