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:
@@ -35,7 +35,7 @@ export function MobileMenu({ children }: React.PropsWithChildren) {
|
||||
/>
|
||||
<div id="close-menu-container" style={{ position: "relative" }}>
|
||||
<Button
|
||||
variant={"Text"}
|
||||
variant="Text"
|
||||
type="button"
|
||||
className={`${styles.hamburger} ${isOpen ? styles.isExpanded : ""}`}
|
||||
aria-label={isOpen ? closeMsg : openMsg}
|
||||
|
||||
@@ -36,7 +36,7 @@ export function NavigationMenu({ isMobile = false }: { isMobile?: boolean }) {
|
||||
className={`${styles.menuItem} ${styles.contactLink}`}
|
||||
>
|
||||
{isMobile ? null : (
|
||||
<MaterialIcon icon="call" size={16} color={"CurrentColor"} />
|
||||
<MaterialIcon icon="call" size={16} color="CurrentColor" />
|
||||
)}
|
||||
{intl.formatMessage({
|
||||
id: "common.contactUs",
|
||||
|
||||
@@ -58,9 +58,9 @@ export function UserMenu({
|
||||
<div className={styles.userMenu}>
|
||||
{(session.status === "loading" || isLoading) &&
|
||||
(isMobile ? (
|
||||
<SkeletonShimmer width={"4ch"} height={"4ch"} />
|
||||
<SkeletonShimmer width="4ch" height="4ch" />
|
||||
) : (
|
||||
<SkeletonShimmer width={"12ch"} height={"1ch"} />
|
||||
<SkeletonShimmer width="12ch" height="1ch" />
|
||||
))}
|
||||
{(session.status === "unauthenticated" || isError) && (
|
||||
<a href={loginLink} className={styles.loginLink}>
|
||||
@@ -86,7 +86,7 @@ export function UserMenu({
|
||||
{session.status === "authenticated" && isSuccess && profileData && (
|
||||
<div>
|
||||
<DialogTrigger onOpenChange={onOpenChange} isOpen={isOpen}>
|
||||
<Button className={styles.userName} variant={"Text"}>
|
||||
<Button className={styles.userName} variant="Text">
|
||||
<Avatar
|
||||
className={styles.avatar}
|
||||
initials={getInitials(
|
||||
@@ -153,7 +153,7 @@ function UserMenuContent({
|
||||
<>
|
||||
<div>
|
||||
{isMobile && (
|
||||
<Typography variant={"Title/Subtitle/md"}>
|
||||
<Typography variant="Title/Subtitle/md">
|
||||
<h3 data-hj-suppress>
|
||||
{intl.formatMessage(
|
||||
{
|
||||
@@ -176,7 +176,7 @@ function UserMenuContent({
|
||||
</Typography>
|
||||
<Typography variant="Title/Overline/sm">
|
||||
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
|
||||
<span>{"·"}</span>
|
||||
<span>·</span>
|
||||
</Typography>
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<span>
|
||||
@@ -194,7 +194,7 @@ function UserMenuContent({
|
||||
</p>
|
||||
</div>
|
||||
<Divider className={styles.menuDivider} />
|
||||
<Typography variant={"Link/md"} className={styles.logoutLink}>
|
||||
<Typography variant="Link/md" className={styles.logoutLink}>
|
||||
{/* Link triggers rsc which doesn't reload complete page and shows logged in even after logout */}
|
||||
<a href={`/${lang}/logout`}>
|
||||
{intl.formatMessage({
|
||||
|
||||
Reference in New Issue
Block a user