🚨(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:
@@ -33,7 +33,7 @@ describe("<Button/>", () => {
|
||||
render(
|
||||
<Button icon={<div>Icon</div>} iconPosition="right">
|
||||
Test button
|
||||
</Button>
|
||||
</Button>,
|
||||
);
|
||||
const button = screen.getByText("Test button");
|
||||
const classes = Array.from(button.classList);
|
||||
@@ -57,7 +57,7 @@ describe("<Button/>", () => {
|
||||
render(
|
||||
<Button onClick={handleClick} disabled={true}>
|
||||
Test button
|
||||
</Button>
|
||||
</Button>,
|
||||
);
|
||||
const button = screen.getByRole("button", { name: "Test button" });
|
||||
expect(handleClick).not.toBeCalled();
|
||||
|
||||
@@ -22,7 +22,7 @@ export const Button = forwardRef<HTMLButtonElement, Props>(
|
||||
fullWidth,
|
||||
...props
|
||||
},
|
||||
ref
|
||||
ref,
|
||||
) => {
|
||||
const classes = [
|
||||
"c__button",
|
||||
@@ -49,5 +49,5 @@ export const Button = forwardRef<HTMLButtonElement, Props>(
|
||||
{!!icon && iconPosition === "right" && icon}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user