Fix a few linting errors

This commit is contained in:
nexy7574 2024-12-30 00:11:52 +00:00
parent 9a70af64ce
commit e0ee01e614
2 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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"