fix naming

This commit is contained in:
rushiiMachine 2024-06-21 14:43:30 -07:00
parent b4dc5e13f5
commit 33058f6703
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
4 changed files with 2 additions and 16 deletions

View file

@ -1,14 +0,0 @@
/*
* Vencord, a Discord client mod
* Copyright (c) 2024 Vendicated and contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
// As vencord uses 3 decade old typescript I need to have this header file
// see https://stackoverflow.com/questions/76400750/intl-supportedvaluesof-property-supportedvaluesof-does-not-exist-on-type-type
// https://github.com/microsoft/TypeScript/issues/49231
declare namespace Intl {
type Key = "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit";
function supportedValuesOf(input: Key): string[];
}

View file

@ -21,7 +21,7 @@ import { makeLazy } from "@utils/lazy";
import { classes } from "@utils/misc";
import { useForceUpdater } from "@utils/react";
import { API_URL, DATASTORE_KEY, getAllTimezones, getTimeString, getUserTimezone, TimezoneDB } from "./Utils";
import { API_URL, DATASTORE_KEY, getAllTimezones, getTimeString, getUserTimezone, TimezoneDB } from "./utils";
const styles = findByPropsLazy("timestampInline");
const useTimezones = makeLazy(getAllTimezones);

View file

@ -6,7 +6,7 @@
import * as DataStore from "@api/DataStore";
import { findStoreLazy } from "@webpack";
export const DATASTORE_KEY = "plugins.Timezones.savedTimezones";
export const DATASTORE_KEY = "plugins.timezones.savedTimezones";
import { debounce } from "@shared/debounce";
import { VENCORD_USER_AGENT } from "@shared/vencordUserAgent";