New source found from dndbeyond.com
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import * as React from "react";
|
||||
import { ComponentProps, ComponentType, PureComponent } from "react";
|
||||
|
||||
import { ThemedSvgProps } from "./hocTypings";
|
||||
import { getDisplayName } from "./utils";
|
||||
|
||||
export function asThemedSvg<
|
||||
C extends React.ComponentType<React.ComponentProps<C>>,
|
||||
ResolvedProps = JSX.LibraryManagedAttributes<C, React.ComponentProps<C>>
|
||||
>(WrappedComponent: C) {
|
||||
return class AsThemedSvg extends React.PureComponent<ThemedSvgProps> {
|
||||
export function asThemedSvg<C extends ComponentType<ComponentProps<C>>>(
|
||||
WrappedComponent: C
|
||||
) {
|
||||
return class AsThemedSvg extends PureComponent<ThemedSvgProps> {
|
||||
static displayName = `asThemedSvg(${getDisplayName(WrappedComponent)})`;
|
||||
|
||||
static defaultProps = {
|
||||
|
||||
Reference in New Issue
Block a user