File tree 3 files changed +14
-18
lines changed
3 files changed +14
-18
lines changed Original file line number Diff line number Diff line change 11
11
"devDependencies" : {
12
12
"@rsbuild/core" : " ~1.2.7" ,
13
13
"@rslib/tsconfig" : " workspace:*" ,
14
- "@rstack-dev/doc-ui" : " 1.6.0 " ,
14
+ "@rstack-dev/doc-ui" : " 1.7.1 " ,
15
15
"@types/node" : " ^22.8.1" ,
16
16
"@types/react" : " ^19.0.8" ,
17
17
"@types/react-dom" : " ^19.0.3" ,
Original file line number Diff line number Diff line change @@ -7,23 +7,19 @@ export function Hero() {
7
7
const navigate = useNavigate ( ) ;
8
8
const tUrl = useI18nUrl ( ) ;
9
9
const t = useI18n < typeof import ( 'i18n' ) > ( ) ;
10
- const handleClickGetStarted = ( ) => {
11
- navigate ( tUrl ( '/guide/start/index' ) ) ;
12
- } ;
13
- const handleClickLearnMore = ( ) => {
10
+ const onClickGetStarted = ( ) => {
14
11
navigate ( tUrl ( '/guide/start/quick-start' ) ) ;
15
12
} ;
16
13
return (
17
14
< BaseHero
18
15
showStars
19
- onClickGetStarted = { handleClickGetStarted }
20
- onClickLearnMore = { handleClickLearnMore }
16
+ onClickGetStarted = { onClickGetStarted }
21
17
title = "Rslib"
22
18
subTitle = { t ( 'subtitle' ) }
23
19
description = { t ( 'slogan' ) }
24
20
logoUrl = "https://assets.rspack.dev/rslib/rslib-logo.svg"
25
- getStartedButtonText = { t ( 'introduction ' ) }
26
- learnMoreButtonText = { t ( 'quickStart' ) }
21
+ getStartedButtonText = { t ( 'quickStart ' ) }
22
+ githubURL = "https://github.com/web-infra-dev/rslib"
27
23
/>
28
24
) ;
29
25
}
You can’t perform that action at this time.
0 commit comments