GithubRepos: Remove Logger

This commit is contained in:
thororen1234 2025-10-07 10:49:02 -04:00
parent b342a456ce
commit 7355c98298
No known key found for this signature in database

View file

@ -9,7 +9,6 @@ import "./styles.css";
import { definePluginSettings } from "@api/Settings";
import ErrorBoundary from "@components/ErrorBoundary";
import { EquicordDevs } from "@utils/constants";
import { Logger } from "@utils/Logger";
import definePlugin, { OptionType } from "@utils/types";
import { User } from "@vencord/discord-types";
import { findByCodeLazy } from "@webpack";
@ -38,9 +37,6 @@ export const settings = definePluginSettings({
const getProfileThemeProps = findByCodeLazy(".getPreviewThemeColors", "primaryColor:");
const logger = new Logger("GitHubRepos");
logger.info("Plugin loaded");
const ProfilePopoutComponent = ErrorBoundary.wrap(
(props: { user: User; displayProfile?: any; }) => {
return (
@ -53,11 +49,9 @@ const ProfilePopoutComponent = ErrorBoundary.wrap(
},
{
noop: true,
onError: err => {
logger.error("Error in profile popout component", err);
return <Text variant="text-xs/semibold" className="vc-github-repos-error" style={{ color: "var(--text-danger)" }}>
Error, Failed to render GithubRepos</Text>;
}
fallback: () => <Text variant="text-xs/semibold" className="vc-github-repos-error" style={{ color: "var(--text-danger)" }}>
Error, Failed to render GithubRepos
</Text>
}
);