File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/Shared/Components/Icon Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 20
20
echo " Running pre-commit hook..."
21
21
22
22
# Check for changes in the Icon folder
23
- CHANGED_FILES=$( git diff --cached --name-only --diff-filter=ACMR | grep ' IconV2/' || true)
23
+ CHANGED_FILES=$( git diff --cached --name-only --diff-filter=ACMR | grep -E ' IconV2/|generate-icon.cjs ' || true)
24
24
25
25
if [ -n " $CHANGED_FILES " ]; then
26
- echo " Changes detected in the Icon folder. Running icon generation script..."
26
+ echo " Changes detected in the Icon folder or icon generation script . Running icon generation script..."
27
27
28
28
if ! npm run generate-icon; then
29
29
echo " Error: Icon generation script failed."
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ const generateIconComponent = () => {
66
66
export type IconName = keyof typeof iconMap;
67
67
68
68
export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
69
+ /** The name of the icon to render. */
69
70
name: keyof typeof iconMap;
70
71
}
71
72
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ export const iconMap = {
47
47
export type IconName = keyof typeof iconMap
48
48
49
49
export interface IconsProps extends Omit < IconBaseProps , 'name' | 'iconMap' > {
50
+ /** The name of the icon to render. */
50
51
name : keyof typeof iconMap
51
52
}
52
53
You can’t perform that action at this time.
0 commit comments