Skip to content

Commit 472127c

Browse files
committed
fix bank icon
1 parent 60c3911 commit 472127c

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sill",
3-
"version": "1.43.17",
3+
"version": "1.43.18",
44
"license": "MIT",
55
"private": true,
66
"scripts": {

web/public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<link rel="shortcut icon" href="%PUBLIC_URL%/dsfr/favicon/favicon.ico?v=1.12.1" type="image/x-icon" />
1717
<link rel="manifest" href="%PUBLIC_URL%/dsfr/favicon/manifest.webmanifest?v=1.12.1" crossorigin="use-credentials" />
1818

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" />
2020
<link rel="stylesheet" href="%PUBLIC_URL%/dsfr/dsfr.min.css?v=1.12.1" />
2121

2222
<%

web/src/ui/config-ui.json

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
22
"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+
},
129
"menu": {
1310
"welcome": {
1411
"enabled": true

web/src/ui/shared/Header/Header.tsx

+11-7
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,22 @@ export const Header = memo(
8989
});
9090
}
9191

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+
92100
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] : []),
99103
<AuthButtons
100104
isOnPageMyAccount={routeName === "account"}
101105
userAuthenticationApi={userAuthenticationApi}
102106
/>
103-
);
107+
];
104108

105109
return (
106110
<HeaderDsfr

0 commit comments

Comments
 (0)