New source found from dndbeyond.com
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import { connect, DispatchProp } from "react-redux";
|
||||
import { AnyAction } from "redux";
|
||||
|
||||
import { Select } from "@dndbeyond/character-components/es";
|
||||
import {
|
||||
rulesEngineSelectors,
|
||||
Action,
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
RuleData,
|
||||
} from "@dndbeyond/character-rules-engine/es";
|
||||
|
||||
import { Select } from "~/components/Select";
|
||||
import { useSidebar } from "~/contexts/Sidebar";
|
||||
import { PaneInfo } from "~/contexts/Sidebar/Sidebar";
|
||||
import { Header } from "~/subApps/sheet/components/Sidebar/components/Header";
|
||||
@@ -22,7 +23,9 @@ import { SharedAppState } from "../../../stores/typings";
|
||||
import { PaneIdentifierUtils } from "../../../utils";
|
||||
import CustomActionsPaneSummary from "./CustomActionsPaneSummary";
|
||||
|
||||
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> {
|
||||
actions: Array<Action>;
|
||||
ruleData: RuleData;
|
||||
paneContext: PaneInfo;
|
||||
@@ -124,17 +127,16 @@ class CustomActionsPane extends React.PureComponent<Props> {
|
||||
<Heading>Add new Actions</Heading>
|
||||
<Select
|
||||
options={customActionOptions}
|
||||
resetAfterChoice={true}
|
||||
onChange={this.handleActionAdd}
|
||||
value={null}
|
||||
name="custom-action-add"
|
||||
resetAfterChoice
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
render() {
|
||||
const {} = this.props;
|
||||
|
||||
return (
|
||||
<div className="ct-custom-actions-pane">
|
||||
<Header>Manage Custom Actions</Header>
|
||||
|
||||
Reference in New Issue
Block a user