New source found from dndbeyond.com
This commit is contained in:
@@ -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 {
|
||||
name: string;
|
||||
className: string;
|
||||
}
|
||||
export default class Subsection extends React.PureComponent<Props> {
|
||||
export default class Subsection extends PureComponent<Props> {
|
||||
static defaultProps = {
|
||||
className: "",
|
||||
};
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { PureComponent, PropsWithChildren } from "react";
|
||||
|
||||
export default class SubsectionFooter extends React.PureComponent {
|
||||
export default class SubsectionFooter extends PureComponent<PropsWithChildren> {
|
||||
render() {
|
||||
const { children } = this.props;
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import React from "react";
|
||||
|
||||
export default class SubsectionHeader extends React.PureComponent {
|
||||
render() {
|
||||
const { children } = this.props;
|
||||
|
||||
return <div className="ct-subsection__header">{children}</div>;
|
||||
}
|
||||
}
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
import React from "react";
|
||||
|
||||
export default class SubsectionHeaderContent extends React.PureComponent {
|
||||
render() {
|
||||
const { children } = this.props;
|
||||
|
||||
return <div className="ct-subsection__header-content">{children}</div>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user