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, ClientWellKnown,
EventID, EventID,
EventRowID, EventRowID,
EventType, EventType, JSONValue,
LoginFlowsResponse, LoginFlowsResponse,
LoginRequest, LoginRequest,
Mentions, Mentions,
@ -39,7 +39,7 @@ import type {
RoomSummary, RoomSummary,
TimelineRowID, TimelineRowID,
UserID, UserID,
UserProfile, JSONValue, UserProfile,
} from "./types" } from "./types"
export interface ConnectionEvent { export interface ConnectionEvent {

View file

@ -1,7 +1,7 @@
import { useEffect, useState } from "react" import { useEffect, useState } from "react"
import Client from "@/api/client.ts"
import { UserProfile } from "@/api/types" import { UserProfile } from "@/api/types"
import { ensureArray } from "@/util/validation.ts" import { ensureArray } from "@/util/validation.ts"
import Client from "@/api/client.ts";
interface PronounSet { interface PronounSet {
subject: string subject: string
@ -28,7 +28,7 @@ interface SetTimezoneProps {
client: Client client: Client
} }
const getCurrentTimezone = () => Intl.DateTimeFormat().resolvedOptions().timeZone const getCurrentTimezone = () => new Intl.DateTimeFormat().resolvedOptions().timeZone
const currentTimeAdjusted = (tz: string) => { const currentTimeAdjusted = (tz: string) => {
const lang = navigator.language || "en-US" const lang = navigator.language || "en-US"