Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit $1
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"test": "jest",
"typescript": "tsc --noEmit",
"lint": "eslint .",
"lint": "eslint . --fix",
"release": "release-it",
"format": "prettier --write src/**/* src/lib/index.tsx",
"generate": "node generator/generate-svg.mjs",
Expand Down Expand Up @@ -134,4 +134,4 @@
]
]
}
}
}
11 changes: 4 additions & 7 deletions src/lib/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ export type IconWeight =

export type PaintFunction = (color: string) => React.ReactNode | null;

interface SVGRProps {
title?: string;
titleId?: string;
}

export type IconProps = {
export interface IconProps {
color?: string;
size?: string | number;
weight?: IconWeight;
Expand All @@ -25,7 +20,9 @@ export type IconProps = {
testID?: string;
duotoneColor?: string;
duotoneOpacity?: number;
} & SVGRProps;
title?: string; // SVGRProps
titleId?: string; // SVGRProps
}

export type Icon = React.FC<IconProps>;

Expand Down
Loading
Loading