Grabbed dndbeyond's source code
``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
import React from "react";
|
||||
|
||||
import Button, { ButtonProps } from "../Button";
|
||||
|
||||
//Duplicated from CharacterToolsClient
|
||||
// ToolsClient implements as a ThemeButton wrapper
|
||||
// eventually RemoveButton usage should be replaced with this one with specialized style overrides
|
||||
|
||||
export interface RemoveButtonProps extends Partial<ButtonProps> {}
|
||||
const RemoveButton: React.FunctionComponent<RemoveButtonProps> = ({
|
||||
size = "small",
|
||||
style = "outline",
|
||||
stopPropagation = true,
|
||||
children,
|
||||
className,
|
||||
...restProps
|
||||
}) => {
|
||||
let classNames: Array<string> = [
|
||||
"ddbc-remove-button",
|
||||
"character-button-remove",
|
||||
];
|
||||
if (className) {
|
||||
classNames.push(className);
|
||||
}
|
||||
|
||||
return (
|
||||
<Button
|
||||
{...restProps}
|
||||
size={size}
|
||||
style={style}
|
||||
stopPropagation={stopPropagation}
|
||||
className={classNames.join(" ")}
|
||||
>
|
||||
{children ? children : "Remove"}
|
||||
</Button>
|
||||
);
|
||||
};
|
||||
|
||||
export default RemoveButton;
|
||||
@@ -0,0 +1,4 @@
|
||||
import RemoveButton from "./RemoveButton";
|
||||
|
||||
export default RemoveButton;
|
||||
export { RemoveButton };
|
||||
Reference in New Issue
Block a user