diff --git a/src/plugins/fakeNitro/index.tsx b/src/plugins/fakeNitro/index.tsx index 1b3c72fd7..7ab3c1515 100644 --- a/src/plugins/fakeNitro/index.tsx +++ b/src/plugins/fakeNitro/index.tsx @@ -316,7 +316,7 @@ export default definePlugin({ }, // Allow users to use custom client themes { - find: '"custom_themes_editor_footer"', + find: '("custom_themes_editor_footer")', replacement: { match: /(?<=\i=)\(0,\i\.\i\)\(\i\.\i\.TIER_2\)(?=,|;)/g, replace: "true" diff --git a/src/plugins/reviewDB/index.tsx b/src/plugins/reviewDB/index.tsx index b81165109..6651b00b5 100644 --- a/src/plugins/reviewDB/index.tsx +++ b/src/plugins/reviewDB/index.tsx @@ -28,7 +28,7 @@ import { useAwaiter } from "@utils/react"; import definePlugin from "@utils/types"; import { Guild, User } from "@vencord/discord-types"; import { findCssClassesLazy } from "@webpack"; -import { Clickable, ConfirmModal,IconUtils, Menu, openModal, Parser } from "@webpack/common"; +import { Clickable, ConfirmModal, IconUtils, Menu, openModal, Parser } from "@webpack/common"; import { Auth, initAuth, updateAuth } from "./auth"; import { openReviewsModal } from "./components/ReviewModal"; @@ -146,62 +146,62 @@ export default definePlugin({ renderProfileCollection: { priority: 0, render: ({ user, isSideBar = false }: { user: User; isSideBar?: boolean; }) => { - const [reviewData] = useAwaiter(() => getReviews(user.id, { limit: 4 }), { deps: [user.id], fallbackValue: null }); + const [reviewData] = useAwaiter(() => getReviews(user.id, { limit: 4 }), { deps: [user.id], fallbackValue: null }); - // Discord are masters at using a crap ton of html elements and css classes to create a simple ui that could have - // been made with less than half of the number of elements, so we have to do this insanity to replicate their ui - const reviewsSection = ( -
- +
+ ); - return isSideBar - ?
{reviewsSection}
- : reviewsSection; - }, + return isSideBar + ?
{reviewsSection}
+ : reviewsSection; + }, }, });