New source found from dndbeyond.com
This commit is contained in:
@@ -6,12 +6,13 @@ import {
|
||||
ContainerUtils,
|
||||
} from "@dndbeyond/character-rules-engine/es";
|
||||
|
||||
import { ButtonWithMenu } from "~/subApps/sheet/components/Sidebar/components/ButtonWithMenu";
|
||||
|
||||
import { InventoryManagerContext } from "../../managers/InventoryManagerContext";
|
||||
import { AppNotificationUtils } from "../../utils";
|
||||
import CustomizeDataEditor from "../CustomizeDataEditor";
|
||||
import EditorBox from "../EditorBox";
|
||||
import SimpleQuantity from "../SimpleQuantity";
|
||||
import { ThemeButtonWithMenu } from "../common/Button";
|
||||
|
||||
interface Props {
|
||||
containers: Array<Container>;
|
||||
@@ -76,7 +77,8 @@ export const CustomItemCreator: React.FC<Props> = ({ containers }) => {
|
||||
/>
|
||||
</div>
|
||||
<div className="ct-custom-item-creator__action">
|
||||
<ThemeButtonWithMenu
|
||||
<ButtonWithMenu
|
||||
placement="bottom-end"
|
||||
onSelect={(containerDefinitionKey) =>
|
||||
inventoryManager.handleCustomAdd(
|
||||
{ customItem, containerDefinitionKey },
|
||||
@@ -86,15 +88,14 @@ export const CustomItemCreator: React.FC<Props> = ({ containers }) => {
|
||||
groupedOptions={ContainerUtils.getGroupedOptions(
|
||||
null,
|
||||
containers,
|
||||
"Add To:",
|
||||
inventoryManager.getSharingState()
|
||||
"Add To:"
|
||||
)}
|
||||
>
|
||||
Add{" "}
|
||||
{customItem.quantity === 1
|
||||
? " Item"
|
||||
: ` ${customItem.quantity} Items`}
|
||||
</ThemeButtonWithMenu>
|
||||
</ButtonWithMenu>
|
||||
</div>
|
||||
</div>
|
||||
</EditorBox>
|
||||
|
||||
Reference in New Issue
Block a user