File tree 4 files changed +19
-18
lines changed
4 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sill" ,
3
- "version" : " 1.43.17 " ,
3
+ "version" : " 1.43.18 " ,
4
4
"license" : " MIT" ,
5
5
"private" : true ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 16
16
< link rel ="shortcut icon " href ="%PUBLIC_URL%/dsfr/favicon/favicon.ico?v=1.12.1 " type ="image/x-icon " />
17
17
< link rel ="manifest " href ="%PUBLIC_URL%/dsfr/favicon/manifest.webmanifest?v=1.12.1 " crossorigin ="use-credentials " />
18
18
19
- < link rel ="stylesheet " href ="%PUBLIC_URL%/dsfr/utility/icons/icons.min.css?hash=48afe025 " />
19
+ < link rel ="stylesheet " href ="%PUBLIC_URL%/dsfr/utility/icons/icons.min.css?hash=b79f885f " />
20
20
< link rel ="stylesheet " href ="%PUBLIC_URL%/dsfr/dsfr.min.css?v=1.12.1 " />
21
21
22
22
< %
Original file line number Diff line number Diff line change 1
1
{
2
2
"header" : {
3
- "icons" : [
4
- {
5
- "iconId" : " fr-icon-bank-fill" ,
6
- "linkProps" : {
7
- "href" : " https://code.gouv.fr"
8
- },
9
- "text" : " Code Gouv"
10
- }
11
- ],
3
+ "link" : {
4
+ "linkProps" : {
5
+ "href" : " https://code.gouv.fr"
6
+ },
7
+ "text" : " Code Gouv"
8
+ },
12
9
"menu" : {
13
10
"welcome" : {
14
11
"enabled" : true
Original file line number Diff line number Diff line change @@ -89,18 +89,22 @@ export const Header = memo(
89
89
} ) ;
90
90
}
91
91
92
+ const link : HeaderProps . QuickAccessItem | null = config . header . link
93
+ ? {
94
+ iconId : "fr-icon-bank-fill" ,
95
+ linkProps : config . header . link . linkProps ,
96
+ text : config . header . link . text
97
+ }
98
+ : null ;
99
+
92
100
const quickAccess : Array < JSX . Element | HeaderProps . QuickAccessItem > = [
93
- < LanguageSelect />
94
- ] ;
95
- config . header . icons . forEach ( icon =>
96
- quickAccess . push ( icon as HeaderProps . QuickAccessItem )
97
- ) ;
98
- quickAccess . push (
101
+ < LanguageSelect /> ,
102
+ ...( link ? [ link ] : [ ] ) ,
99
103
< AuthButtons
100
104
isOnPageMyAccount = { routeName === "account" }
101
105
userAuthenticationApi = { userAuthenticationApi }
102
106
/>
103
- ) ;
107
+ ] ;
104
108
105
109
return (
106
110
< HeaderDsfr
You can’t perform that action at this time.
0 commit comments