mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
Fix a few linting errors
This commit is contained in:
parent
9a70af64ce
commit
e0ee01e614
2 changed files with 4 additions and 4 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue