Merged in chore/eslint-curly-braces (pull request #3304)

Chore/eslint curly braces

* Add eslint rule for curly braces

* run eslint --fix for all files


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-12-08 07:56:21 +00:00
parent 5986828580
commit de4b3c1c3c
54 changed files with 139 additions and 104 deletions

View File

@@ -26,21 +26,21 @@ export default async function JoinLoyaltyContact({
<section className={styles.joinLoyaltyContainer}>
<article className={styles.wrapper}>
{block.title ? (
<Typography variant={"Title/Subtitle/md"}>
<Typography variant="Title/Subtitle/md">
<h4 className={styles.title}>{block.title}</h4>
</Typography>
) : null}
<ScandicFriends color="red" />
{block.preamble ? (
<Typography variant={"Body/Paragraph/mdRegular"}>
<Typography variant="Body/Paragraph/mdRegular">
<p className={styles.preamble}>{block.preamble}</p>
</Typography>
) : null}
{block.button ? (
<Typography variant={"Body/Paragraph/mdBold"}>
<Typography variant="Body/Paragraph/mdBold">
<ButtonLink
className={styles.button}
size={"Small"}
size="Small"
wrapping
href={block.button.href}
target={block.button.openInNewTab ? "_blank" : "_self"}
@@ -50,7 +50,7 @@ export default async function JoinLoyaltyContact({
</Typography>
) : null}
<section className={styles.loginContainer}>
<Typography variant={"Body/Paragraph/mdRegular"}>
<Typography variant="Body/Paragraph/mdRegular">
<p>
{intl.formatMessage({
id: "loyalty.alreadyFriend",