File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
2- import Tabs from '../../src' ;
32import '../../assets/index.less' ;
3+ import Tabs from '../../src' ;
44
55export default ( ) => {
6- const [ destroy , setDestroy ] = React . useState ( false ) ;
7- const [ items , setItems ] = React . useState ( [
6+ const [ destroy ] = React . useState ( false ) ;
7+ const [ items ] = React . useState ( [
88 {
99 label : 'Light' ,
1010 key : 'light' ,
@@ -29,7 +29,7 @@ export default () => {
2929
3030 return (
3131 < React . StrictMode >
32- < Tabs tabBarExtraContent = "extra" items = { items } indicatorSize = { ( origin ) => origin - 16 } />
32+ < Tabs tabBarExtraContent = "extra" items = { items } indicatorSize = { origin => origin - 16 } />
3333 </ React . StrictMode >
3434 ) ;
3535} ;
Original file line number Diff line number Diff line change 5656 "@types/keyv" : " 4.2.0" ,
5757 "@types/react" : " ^17.0.14" ,
5858 "@types/react-dom" : " ^18.0.11" ,
59- "@umijs/fabric" : " ^2.3 .1" ,
59+ "@umijs/fabric" : " ^4.0 .1" ,
6060 "coveralls" : " ^3.0.6" ,
6161 "cross-env" : " ^7.0.2" ,
6262 "dumi" : " ^2.0.0" ,
You can’t perform that action at this time.
0 commit comments