New source found from dndbeyond.com
This commit is contained in:
+4
-3
@@ -1,17 +1,18 @@
|
||||
import * as React from "react";
|
||||
import { PureComponent, PropsWithChildren } from "react";
|
||||
|
||||
import LinkButton from "../LinkButton";
|
||||
|
||||
interface Props {
|
||||
interface Props extends PropsWithChildren {
|
||||
url: string;
|
||||
className?: string;
|
||||
block?: boolean;
|
||||
size: "oversized" | "large" | "medium" | "small";
|
||||
disabled?: boolean;
|
||||
download?: string | boolean;
|
||||
target?: string;
|
||||
onClick?: (isDisabled: boolean) => void;
|
||||
}
|
||||
export default class BuilderLinkButton extends React.PureComponent<Props, {}> {
|
||||
export default class BuilderLinkButton extends PureComponent<Props, {}> {
|
||||
static defaultProps = {
|
||||
className: "",
|
||||
};
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { MouseEvent, PureComponent, PropsWithChildren } from "react";
|
||||
|
||||
interface Props {
|
||||
interface Props extends PropsWithChildren {
|
||||
url: string;
|
||||
className: string;
|
||||
block: boolean;
|
||||
@@ -10,7 +10,7 @@ interface Props {
|
||||
onClick?: (isDisabled: boolean) => void;
|
||||
target?: string;
|
||||
}
|
||||
export default class LinkButton extends React.PureComponent<Props, {}> {
|
||||
export default class LinkButton extends PureComponent<Props, {}> {
|
||||
static defaultProps = {
|
||||
className: "",
|
||||
clsNames: [],
|
||||
@@ -18,7 +18,7 @@ export default class LinkButton extends React.PureComponent<Props, {}> {
|
||||
disabled: false,
|
||||
};
|
||||
|
||||
handleClick = (evt: React.MouseEvent) => {
|
||||
handleClick = (evt: MouseEvent) => {
|
||||
const { onClick, disabled } = this.props;
|
||||
|
||||
if (onClick) {
|
||||
|
||||
+3
-3
@@ -1,8 +1,8 @@
|
||||
import * as React from "react";
|
||||
import { PureComponent, PropsWithChildren } from "react";
|
||||
|
||||
import LinkButton from "../LinkButton";
|
||||
|
||||
interface Props {
|
||||
interface Props extends PropsWithChildren {
|
||||
url: string;
|
||||
className?: string;
|
||||
block?: boolean;
|
||||
@@ -12,7 +12,7 @@ interface Props {
|
||||
download?: string | boolean;
|
||||
target?: string;
|
||||
}
|
||||
export default class ThemeLinkButton extends React.PureComponent<Props, {}> {
|
||||
export default class ThemeLinkButton extends PureComponent<Props, {}> {
|
||||
static defaultProps = {
|
||||
className: "",
|
||||
style: "filled",
|
||||
|
||||
Reference in New Issue
Block a user