mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-23 23:15: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");
|
const RoleButtonClasses = findByPropsLazy("button", "buttonInner", "icon", "banner");
|
||||||
|
|
||||||
type SwitchProfileMenuItemProps = {
|
interface SwitchProfileMenuItemProps {
|
||||||
id: string;
|
id: string;
|
||||||
label: string;
|
label: string;
|
||||||
subtext: ReactNode;
|
subtext: ReactNode;
|
||||||
action(): void;
|
action(): void;
|
||||||
};
|
}
|
||||||
|
|
||||||
export default definePlugin({
|
export default definePlugin({
|
||||||
name: "SwitchProfileButton",
|
name: "SwitchProfileButton",
|
||||||
|
@ -56,7 +56,7 @@ export default definePlugin({
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
aria-label={props.label}
|
aria-label={props.label}
|
||||||
onClick={(props.action)}
|
onClick={props.action}
|
||||||
look={Button.Looks.FILLED}
|
look={Button.Looks.FILLED}
|
||||||
size={Button.Sizes.NONE}
|
size={Button.Sizes.NONE}
|
||||||
color={RoleButtonClasses.bannerColor}
|
color={RoleButtonClasses.bannerColor}
|
||||||
|
|
Loading…
Add table
Reference in a new issue