From e0ee01e614eb6a5cefdca2300ad285ccdac7e336 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Mon, 30 Dec 2024 00:11:52 +0000 Subject: [PATCH] Fix a few linting errors --- web/src/api/rpc.ts | 4 ++-- web/src/ui/rightpanel/UserExtendedProfile.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/api/rpc.ts b/web/src/api/rpc.ts index df9131f..5975079 100644 --- a/web/src/api/rpc.ts +++ b/web/src/api/rpc.ts @@ -19,7 +19,7 @@ import type { ClientWellKnown, EventID, EventRowID, - EventType, + EventType, JSONValue, LoginFlowsResponse, LoginRequest, Mentions, @@ -39,7 +39,7 @@ import type { RoomSummary, TimelineRowID, UserID, - UserProfile, JSONValue, + UserProfile, } from "./types" export interface ConnectionEvent { diff --git a/web/src/ui/rightpanel/UserExtendedProfile.tsx b/web/src/ui/rightpanel/UserExtendedProfile.tsx index aa9bde3..4be2b7c 100644 --- a/web/src/ui/rightpanel/UserExtendedProfile.tsx +++ b/web/src/ui/rightpanel/UserExtendedProfile.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from "react" +import Client from "@/api/client.ts" import { UserProfile } from "@/api/types" import { ensureArray } from "@/util/validation.ts" -import Client from "@/api/client.ts"; interface PronounSet { subject: string @@ -28,7 +28,7 @@ interface SetTimezoneProps { client: Client } -const getCurrentTimezone = () => Intl.DateTimeFormat().resolvedOptions().timeZone +const getCurrentTimezone = () => new Intl.DateTimeFormat().resolvedOptions().timeZone const currentTimeAdjusted = (tz: string) => { const lang = navigator.language || "en-US"