File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
test/integration/next-appdir/ui Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,12 @@ export function ClientFooterItem() {
66 < FooterBottomItem
77 bottomItem = { {
88 iconId : "fr-icon-arrow-down-line" ,
9- linkProps : {
10- href : `https://example.com` ,
9+ buttonProps : {
10+ onClick : ( ) => {
11+
12+ alert ( "Click on client item" ) ;
13+
14+ }
1115 } ,
1216 text : "A client side bottom item" ,
1317
Original file line number Diff line number Diff line change 33import { HeaderQuickAccessItem } from "@codegouvfr/react-dsfr/Header" ;
44
55export function ClientHeaderQuickAccessItem ( ) {
6+
7+ //NOTE: You can use hooks here
8+
69 return (
710 < HeaderQuickAccessItem
811 quickAccessItem = { {
9- iconId : "fr-icon-article-fill" ,
10- linkProps : {
11- href : `/some-page` ,
12+ iconId : "ri-layout-4-line" ,
13+ buttonProps : {
14+ onClick : ( ) => {
15+
16+ alert ( "Click on client item" ) ;
17+
18+ }
1219 } ,
1320 text : "A client side item" ,
1421
You can’t perform that action at this time.
0 commit comments