New source found from dndbeyond.com
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import React from "react";
|
||||
import { connect, DispatchProp } from "react-redux";
|
||||
import { AnyAction } from "redux";
|
||||
|
||||
import { Collapsible, Select } from "@dndbeyond/character-components/es";
|
||||
import { Collapsible } from "@dndbeyond/character-components/es";
|
||||
import {
|
||||
characterActions,
|
||||
CharacterPreferences,
|
||||
@@ -19,6 +20,7 @@ import {
|
||||
|
||||
import { HtmlContent } from "~/components/HtmlContent";
|
||||
import { NumberDisplay } from "~/components/NumberDisplay";
|
||||
import { Select } from "~/components/Select";
|
||||
import { Header } from "~/subApps/sheet/components/Sidebar/components/Header";
|
||||
import { Heading } from "~/subApps/sheet/components/Sidebar/components/Heading";
|
||||
|
||||
@@ -27,7 +29,9 @@ import * as appEnvSelectors from "../../../selectors/appEnv";
|
||||
import { SharedAppState } from "../../../stores/typings";
|
||||
import SpeedManagePaneCustomizeItem from "./SpeedManagePaneCustomizeItem";
|
||||
|
||||
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> {
|
||||
movements: SpeedInfo;
|
||||
customSpeedLookup: CustomSpeedLookup;
|
||||
customSpeeds: Array<CustomSpeedContract>;
|
||||
@@ -129,8 +133,9 @@ class SpeedManagePane extends React.PureComponent<Props> {
|
||||
<Select
|
||||
options={movementOptions}
|
||||
onChange={this.handleMovementDisplayChange}
|
||||
initialOptionRemoved={true}
|
||||
value={preferences.primaryMovement}
|
||||
name="movement-display"
|
||||
hidePlaceholderOption
|
||||
/>
|
||||
</Collapsible>
|
||||
);
|
||||
@@ -154,7 +159,7 @@ class SpeedManagePane extends React.PureComponent<Props> {
|
||||
};
|
||||
|
||||
render() {
|
||||
const { movements, customSpeedLookup, ruleData, theme } = this.props;
|
||||
const { movements, customSpeedLookup, ruleData } = this.props;
|
||||
|
||||
return (
|
||||
<div className="ct-speed-manage-pane">
|
||||
|
||||
Reference in New Issue
Block a user