Skip to content

Commit

Permalink
chore: Added back LegacySvgProps
Browse files Browse the repository at this point in the history
  • Loading branch information
ape-fede committed Feb 24, 2023
1 parent 48643dd commit 833dc6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Svg/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { SVGAttributes } from "react";
import { DefaultTheme } from "styled-components";
import { SpaceProps } from "styled-system";
import { colorProps } from "../../theme/Apeswap/types";

export enum icons {
Expand Down Expand Up @@ -77,6 +80,11 @@ export enum directions {
export type iconTypes = `${icons}`;
type directionTypes = `${directions}`;

export interface LegacySvgProps extends SVGAttributes<HTMLOrSVGElement>, SpaceProps {
theme?: DefaultTheme;
spin?: boolean;
bgColor?: string;
}
export interface SvgProps {
icon?: iconTypes;
direction?: directionTypes;
Expand Down

0 comments on commit 833dc6b

Please sign in to comment.