Skip to content

Commit b563a8b

Browse files
authored
fix(ProConnectButton): ProConnect is out! (#315)
* fix: conflict between proconnect and franceconnect buttons * fix: proconnect link, root domain is not available yet * fix: franceconnect documentation link * feat: hide AC & MCP buttons, shows PC button instead
1 parent 5604438 commit b563a8b

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.storybook/preview.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ const { getHardCodedWeight } = (() => {
110110
"components/Stepper",
111111
"components/Button",
112112
"components/FranceConnectButton",
113-
"components/AgentConnectButton",
114-
"components/MonCompteProButton"
113+
"components/ProConnectButton"
115114
];
116115

117116
function getHardCodedWeight(kind) {

src/ProConnectButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const ProConnectButton = memo(
5353
style={style}
5454
ref={ref}
5555
>
56-
<Inner className={fr.cx("fr-btn", "fr-connect")} {...innerProps}>
56+
<Inner className={cx(fr.cx("fr-btn", "fr-connect"), "pro-connect")} {...innerProps}>
5757
<span className={cx(fr.cx("fr-connect__login"), classes.login)}>
5858
S’identifier avec
5959
</span>
@@ -63,7 +63,7 @@ export const ProConnectButton = memo(
6363
</Inner>
6464
<p>
6565
<a
66-
href={"https://proconnect.gouv.fr/"}
66+
href={"https://www.proconnect.gouv.fr/"}
6767
target="_blank"
6868
rel="noopener"
6969
title={`${t("what is service")} - ${t("new window")}`}

src/assets/proconnect-btn.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stories/FranceConnectButton.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const { meta, getStory } = getStoryFactory({
66
sectionName,
77
"wrappedComponent": { FranceConnectButton },
88
"description": `
9-
- [See DSFR documentation](https://github.com/france-connect/Documentation-AgentConnect/blob/main/doc_fs/implementation_fca/bouton_fca.md)
9+
- [See DSFR documentation](https://www.systeme-de-design.gouv.fr/composants-et-modeles/composants/bouton-franceconnect/)
1010
- [See source code](https://github.com/codegouvfr/react-dsfr/blob/main/src/FranceConnectButton.tsx)`
1111
});
1212

0 commit comments

Comments
 (0)