Skip to content

Commit cac9d01

Browse files
authored
chore: bump father version (#636)
1 parent 6ca5adc commit cac9d01

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"docs:deploy": "gh-pages -d docs-dist",
3434
"gh-pages": "npm run docs:build && npm run docs:deploy",
3535
"compile": "father build && lessc assets/index.less assets/index.css",
36-
"prepublishOnly": "npm run compile && np --yolo --no-publish && npm run gh-pages",
36+
"prepublishOnly": "npm run compile && rc-np",
3737
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
3838
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
3939
"test": "rc-test",
@@ -47,7 +47,8 @@
4747
"classnames": "^2.3.2"
4848
},
4949
"devDependencies": {
50-
"@rc-component/father-plugin": "^1.0.0",
50+
"@rc-component/father-plugin": "^2.0.2",
51+
"@rc-component/np": "^1.0.3",
5152
"@testing-library/jest-dom": "^6.1.5",
5253
"@testing-library/react": "^16.0.1",
5354
"@testing-library/user-event": "^14.5.2",
@@ -68,7 +69,6 @@
6869
"identity-obj-proxy": "^3.0.0",
6970
"less": "^4.1.3",
7071
"lint-staged": "^15.0.2",
71-
"np": "^10.0.5",
7272
"prettier": "^3.1.0",
7373
"rc-select": "^14.16.4",
7474
"rc-test": "^7.0.15",

src/Pagination.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const Pagination: React.FC<PaginationProps> = (props) => {
119119
/>
120120
);
121121
if (typeof icon === 'function') {
122-
iconNode = React.createElement<PaginationProps>(icon, { ...props });
122+
iconNode = React.createElement<PaginationProps>(icon, props);
123123
}
124124
return iconNode as React.ReactNode;
125125
}

0 commit comments

Comments
 (0)