mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 07:25:10 +00:00
SwitchProfileButton: resolve some suggestions
This commit is contained in:
parent
8aa6dc2414
commit
3e51ce57c4
1 changed files with 3 additions and 3 deletions
|
@ -14,12 +14,12 @@ import { ReactNode } from "react";
|
|||
|
||||
const RoleButtonClasses = findByPropsLazy("button", "buttonInner", "icon", "banner");
|
||||
|
||||
type SwitchProfileMenuItemProps = {
|
||||
interface SwitchProfileMenuItemProps {
|
||||
id: string;
|
||||
label: string;
|
||||
subtext: ReactNode;
|
||||
action(): void;
|
||||
};
|
||||
}
|
||||
|
||||
export default definePlugin({
|
||||
name: "SwitchProfileButton",
|
||||
|
@ -56,7 +56,7 @@ export default definePlugin({
|
|||
>
|
||||
<Button
|
||||
aria-label={props.label}
|
||||
onClick={(props.action)}
|
||||
onClick={props.action}
|
||||
look={Button.Looks.FILLED}
|
||||
size={Button.Sizes.NONE}
|
||||
color={RoleButtonClasses.bannerColor}
|
||||
|
|
Loading…
Add table
Reference in a new issue