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