Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino committed Jul 10, 2024
1 parent cb94778 commit 369f095
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Components/USRBGButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default () => (
/>
</svg>
)}
text="USRBG Banner"
tooltipText="USRBG Banner"
onClick={async (): Promise<void> => {
if (UltimateGuildStore.getGuild(USBBG_SERVER_ID)) {
FluxDispatcher.dispatch({ type: "LAYER_POP_ALL" });
Expand Down
3 changes: 2 additions & 1 deletion src/lib/requiredModules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ Modules.loadModules = async (): Promise<void> => {
});

Modules.HeaderButton ??= await webpack
.waitForModule<Types.HeaderButton>(webpack.filters.bySource('.banner]:"banner"==='), {
.waitForModule(webpack.filters.bySource(".bannerColor,"), {
timeout: 10000,
})
.then((mod) => webpack.getFunctionBySource<Types.HeaderButton>(mod, ".bannerColor,"))
.catch(() => {
throw new Error("Failed To Find HeaderButton Module");
});
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export namespace Types {
}
export type HeaderButton = React.ComponentType<{
icon?: () => React.ReactNode;
text?: string;
tooltipText?: string;
onClick?: () => void;
variant?: "banner" | "icon" | "text";
}>;
Expand Down

0 comments on commit 369f095

Please sign in to comment.