mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
fix naming
This commit is contained in:
parent
b4dc5e13f5
commit
33058f6703
4 changed files with 2 additions and 16 deletions
14
src/plugins/Timezones/Intl.d.ts
vendored
14
src/plugins/Timezones/Intl.d.ts
vendored
|
@ -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[];
|
||||
}
|
|
@ -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);
|
|
@ -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";
|
Loading…
Add table
Reference in a new issue