feat(plugin): ShikiCodeblocks (#267)

Co-authored-by: ArjixWasTaken <53124886+ArjixWasTaken@users.noreply.github.com>
Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
Justice Almanzar 2022-12-02 10:43:37 -05:00 committed by GitHub
parent 4760af7f0e
commit 41dddc9eee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 1480 additions and 105 deletions

View file

@ -179,7 +179,7 @@ function Newer(props: CommonProps) {
}
function Updater() {
const [repo, err, repoPending] = useAwaiter(getRepo, "Loading...");
const [repo, err, repoPending] = useAwaiter(getRepo, { fallbackValue: "Loading..." });
React.useEffect(() => {
if (err)

View file

@ -27,7 +27,9 @@ import { Button, Card, Forms, Margins, React, Switch } from "@webpack/common";
const st = (style: string) => `vcSettings${style}`;
function VencordSettings() {
const [settingsDir, , settingsDirPending] = useAwaiter(() => VencordNative.ipc.invoke<string>(IpcEvents.GET_SETTINGS_DIR), "Loading...");
const [settingsDir, , settingsDirPending] = useAwaiter(() => VencordNative.ipc.invoke<string>(IpcEvents.GET_SETTINGS_DIR), {
fallbackValue: "Loading..."
});
const settings = useSettings();
const [donateImage] = React.useState(