New source found from dndbeyond.com
This commit is contained in:
@@ -4,12 +4,14 @@
|
||||
*/
|
||||
import React from "react";
|
||||
|
||||
import { Checkbox, Select } from "@dndbeyond/character-components/es";
|
||||
import { Checkbox } from "@dndbeyond/character-components/es";
|
||||
import {
|
||||
HelperUtils,
|
||||
HtmlSelectOption,
|
||||
} from "@dndbeyond/character-rules-engine/es";
|
||||
|
||||
import { Select } from "~/components/Select";
|
||||
|
||||
import CustomizeDataEditorProperty from "./CustomizeDataEditorProperty";
|
||||
import CustomizeDataEditorPropertyLabel from "./CustomizeDataEditorPropertyLabel";
|
||||
import CustomizeDataEditorPropertyValue from "./CustomizeDataEditorPropertyValue";
|
||||
@@ -109,6 +111,8 @@ class SelectEditor extends React.PureComponent<
|
||||
options={options}
|
||||
value={value}
|
||||
onChange={this.handleChange}
|
||||
name={propertyKey}
|
||||
optionsWidth="x-large"
|
||||
/>
|
||||
</CustomizeDataEditorPropertyValue>
|
||||
<CustomizeDataEditorPropertyLabel>
|
||||
|
||||
+3
-3
@@ -1,12 +1,12 @@
|
||||
import React from "react";
|
||||
import { PureComponent, PropsWithChildren } from "react";
|
||||
|
||||
import { FormatUtils } from "@dndbeyond/character-rules-engine/es";
|
||||
|
||||
interface Props {
|
||||
interface Props extends PropsWithChildren {
|
||||
isBlock: boolean;
|
||||
propertyKey: string;
|
||||
}
|
||||
export default class CustomizeDataEditorProperty extends React.PureComponent<Props> {
|
||||
export default class CustomizeDataEditorProperty extends PureComponent<Props> {
|
||||
static defaultProps = {
|
||||
isBlock: false,
|
||||
};
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { PureComponent, PropsWithChildren } from "react";
|
||||
|
||||
export default class CustomizeDataEditorPropertyLabel extends React.PureComponent {
|
||||
export default class CustomizeDataEditorPropertyLabel extends PureComponent<PropsWithChildren> {
|
||||
render() {
|
||||
return (
|
||||
<div className="ct-customize-data-editor__property-label">
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { PureComponent, PropsWithChildren } from "react";
|
||||
|
||||
export default class CustomizeDataEditorPropertyValue extends React.PureComponent {
|
||||
export default class CustomizeDataEditorPropertyValue extends PureComponent<PropsWithChildren> {
|
||||
render() {
|
||||
return (
|
||||
<div className="ct-customize-data-editor__property-value">
|
||||
|
||||
Reference in New Issue
Block a user