Skip to content

Commit aeac22f

Browse files
committed
Fmt
1 parent 44dfca3 commit aeac22f

20 files changed

+71
-70
lines changed

src/Accordion.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
"use client";
22

3-
import React, {
4-
forwardRef,
5-
memo,
6-
useState,
7-
type ReactNode,
8-
type CSSProperties
9-
} from "react";
3+
import React, { forwardRef, memo, useState, type ReactNode, type CSSProperties } from "react";
104
import { assert } from "tsafe/assert";
115
import type { Equals } from "tsafe";
126
import { fr } from "./fr";

src/AgentConnectButton.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ export const AgentConnectButton = memo(
3838
const Inner = onClick !== undefined ? "button" : "a";
3939

4040
return (
41-
<div id={id_props ?? "fr-agentconnect-button"} className={className} style={style} ref={ref}>
41+
<div
42+
id={id_props ?? "fr-agentconnect-button"}
43+
className={className}
44+
style={style}
45+
ref={ref}
46+
>
4247
<span className="agentconnect-button__preload-hover" />
4348
<Inner
4449
className="agentconnect-button__link"

src/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const Badge = memo(
3333

3434
assert<Equals<keyof typeof rest, never>>();
3535

36-
const id= useAnalyticsId({
36+
const id = useAnalyticsId({
3737
"defaultIdPrefix": "fr-badge",
3838
"explicitlyProvidedId": props_id
3939
});

src/Button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ export namespace ButtonProps {
6767
export type AsButton = {
6868
linkProps?: never;
6969
onClick?: React.MouseEventHandler<HTMLButtonElement>;
70-
nativeButtonProps?: ComponentProps<"button"> & Record<`data-${string}`, string | boolean | null | undefined>;
70+
nativeButtonProps?: ComponentProps<"button"> &
71+
Record<`data-${string}`, string | boolean | null | undefined>;
7172
disabled?: boolean;
7273
/** Default "button" */
7374
type?: "button" | "submit" | "reset";
7475
};
7576
}
7677

77-
7878
/** @see <https://components.react-dsfr.fr/?path=/docs/components-button> */
7979
export const Button = memo(
8080
forwardRef<HTMLButtonElement | HTMLAnchorElement, ButtonProps>((props, ref) => {

src/Download.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,16 @@ export type DownloadProps = {
2020
/** @see <https://components.react-dsfr.fr/?path=/docs/components-download> */
2121
export const Download = memo(
2222
forwardRef<HTMLDivElement, DownloadProps>((props, ref) => {
23-
const { className, style, details, label, linkProps, classes = {},
24-
id: props_id
25-
, ...rest } = props;
23+
const {
24+
className,
25+
style,
26+
details,
27+
label,
28+
linkProps,
29+
classes = {},
30+
id: props_id,
31+
...rest
32+
} = props;
2633

2734
assert<Equals<keyof typeof rest, never>>();
2835

src/FranceConnectButton.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,16 @@ export namespace FranceConnectButtonProps {
3232
/** @see <https://components.react-dsfr.fr/?path=/docs/components-franceconnectbutton> */
3333
export const FranceConnectButton = memo(
3434
forwardRef<HTMLDivElement, FranceConnectButtonProps>((props, ref) => {
35-
const { classes = {}, className, url: href, plus = false, style, onClick,
36-
id: id_props
37-
,
38-
...rest } = props;
35+
const {
36+
classes = {},
37+
className,
38+
url: href,
39+
plus = false,
40+
style,
41+
onClick,
42+
id: id_props,
43+
...rest
44+
} = props;
3945

4046
assert<Equals<keyof typeof rest, never>>();
4147

src/Header/Header.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,10 @@ export const Header = memo(
400400
</div>
401401
{navigation !== undefined &&
402402
(navigation instanceof Array ? (
403-
<MainNavigation id={`${id}-main-navigation`} items={navigation} />
403+
<MainNavigation
404+
id={`${id}-main-navigation`}
405+
items={navigation}
406+
/>
404407
) : (
405408
navigation
406409
))}

src/Highlight.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ export namespace HighlightProps {
2222
/** @see <https://components.react-dsfr.fr/?path=/docs/components-highlight> */
2323
export const Highlight = memo(
2424
forwardRef<HTMLDivElement, HighlightProps>((props, ref) => {
25-
const { className, classes = {}, style, children, size,
26-
id: id_props
27-
, ...rest } = props;
25+
const { className, classes = {}, style, children, size, id: id_props, ...rest } = props;
2826

2927
assert<Equals<keyof typeof rest, never>>();
3028

src/MainNavigation/MainNavigation.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ export const MainNavigation = memo(
9292
return { getMenuId };
9393
})();
9494

95-
9695
const id = useAnalyticsId({
9796
"explicitlyProvidedId": id_props,
98-
"defaultIdPrefix": "main-navigation",
97+
"defaultIdPrefix": "main-navigation"
9998
});
10099

101100
return (

src/MonCompteProButton.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ export namespace FranceConnectButtonProps {
3030
/** @see <https://components.react-dsfr.fr/?path=/docs/components-franceconnectbutton> */
3131
export const MonCompteProButton = memo(
3232
forwardRef<HTMLDivElement, FranceConnectButtonProps>((props, ref) => {
33-
const { classes = {}, className, url: href, style, onClick,
34-
id: id_props
35-
, ...rest } = props;
33+
const { classes = {}, className, url: href, style, onClick, id: id_props, ...rest } = props;
3634

3735
assert<Equals<keyof typeof rest, never>>();
3836

0 commit comments

Comments
 (0)