🚨(lint) update file for prettier 3.0.0

Prettier 3.0.0 comes with new standards so we need to upgrade our files
to comply with it.
This commit is contained in:
Nathan Vasse
2023-07-18 15:43:56 +02:00
committed by NathanVss
parent 5f63c2a606
commit d85f9edac8
61 changed files with 421 additions and 419 deletions

View File

@@ -48,7 +48,7 @@ describe("<Switch/>", () => {
render(<Switch label="Newsletter" state="success" text="Success text" />);
screen.getByText("Success text");
expect(
document.querySelector(".c__field.c__field--success")
document.querySelector(".c__field.c__field--success"),
).toBeInTheDocument();
});
@@ -56,7 +56,7 @@ describe("<Switch/>", () => {
render(<Switch label="Newsletter" state="error" text="Error text" />);
screen.getByText("Error text");
expect(
document.querySelector(".c__field.c__field--error")
document.querySelector(".c__field.c__field--error"),
).toBeInTheDocument();
});
@@ -68,7 +68,7 @@ describe("<Switch/>", () => {
<Switch label="Newsletter" />
<Switch label="Notifications" />
<Switch label="Phone" />
</div>
</div>,
);
// expect all checkboxes to be unchecked
const newsletter: HTMLInputElement = screen.getByRole("checkbox", {

View File

@@ -26,7 +26,7 @@ export const Switch = ({
{
"c__checkbox--disabled": props.disabled,
"c__switch--full-width": fullWidth,
}
},
)}
>
<Field text={text} compact={true} state={state} fullWidth={fullWidth}>