New source found from dndbeyond.com
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React from "react";
|
||||
import { connect, DispatchProp } from "react-redux";
|
||||
import { AnyAction } from "redux";
|
||||
|
||||
import {
|
||||
characterActions,
|
||||
@@ -17,7 +18,9 @@ import { PaneInitFailureContent } from "../../../../../../subApps/sheet/componen
|
||||
import { ThemeButton } from "../../../components/common/Button";
|
||||
import { SharedAppState } from "../../../stores/typings";
|
||||
|
||||
interface Props extends DispatchProp {
|
||||
// TODO: We are typing with AnyAction here to work around issues with UnknownAction, the type that was introduced in Redux 5.
|
||||
// If we decide to modernize to Redux 5, we will need to refactor much of the Rules Engine redux usage.
|
||||
interface Props extends DispatchProp<AnyAction> {
|
||||
notes: CharacterNotes;
|
||||
placeholder: string;
|
||||
autoSaveDelay: number;
|
||||
@@ -192,7 +195,7 @@ class NoteManagePane extends React.PureComponent<Props, State> {
|
||||
if (hasBeenEdited) {
|
||||
if (isSaveDirty) {
|
||||
calloutNode = (
|
||||
<React.Fragment>
|
||||
<>
|
||||
<div className="ct-note-manage-pane__status ct-note-manage-pane__status--dirty">
|
||||
<div className="ct-note-manage-pane__status-text">
|
||||
Unsaved changes
|
||||
@@ -201,7 +204,7 @@ class NoteManagePane extends React.PureComponent<Props, State> {
|
||||
<ThemeButton size="small" onClick={this.handleSave}>
|
||||
Save
|
||||
</ThemeButton>
|
||||
</React.Fragment>
|
||||
</>
|
||||
);
|
||||
} else {
|
||||
calloutNode = (
|
||||
|
||||
Reference in New Issue
Block a user