mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-26 09:16:24 +00:00
remove setStatusFunc wrapper
This commit is contained in:
parent
bb64c9b1fa
commit
bba595bb7c
1 changed files with 2 additions and 3 deletions
|
@ -32,8 +32,7 @@ const EmojiComponent = findComponentByCodeLazy(/\i.translateSurrogatesToInlineEm
|
||||||
const StatusStyles = findByPropsLazy("statusItem");
|
const StatusStyles = findByPropsLazy("statusItem");
|
||||||
|
|
||||||
const customStatusSettings = getUserSettingLazy("status", "customStatus");
|
const customStatusSettings = getUserSettingLazy("status", "customStatus");
|
||||||
const setStatusFunc = findByCodeLazy(/default\.track\(\i.\i.CUSTOM_STATUS_UPDATED/);
|
const setStatus = findByCodeLazy(/default\.track\(\i.\i.CUSTOM_STATUS_UPDATED/);
|
||||||
const setStatus = (status: DiscordStatus) => setStatusFunc(status.text, status.emojiInfo, status.clearAfter, { "location": { "section": "Account Panel", "object": "Avatar" } });
|
|
||||||
|
|
||||||
interface Emoji {
|
interface Emoji {
|
||||||
animated: boolean;
|
animated: boolean;
|
||||||
|
@ -93,7 +92,7 @@ const StatusSubMenuComponent = () => {
|
||||||
{Object.values((settings.store.StatusPresets as { [k: string]: DiscordStatus; })).map(status => <Menu.MenuItem
|
{Object.values((settings.store.StatusPresets as { [k: string]: DiscordStatus; })).map(status => <Menu.MenuItem
|
||||||
id={"status-presets-" + status.text}
|
id={"status-presets-" + status.text}
|
||||||
label={status.status}
|
label={status.status}
|
||||||
action={() => setStatus(status)}
|
action={() => setStatus(status.text, status.emojiInfo, status.clearAfter, { "location": { "section": "Account Panel", "object": "Avatar" } })}
|
||||||
render={() => <RenderStatusMenuItem status={status} />}
|
render={() => <RenderStatusMenuItem status={status} />}
|
||||||
/>)}
|
/>)}
|
||||||
</Menu.Menu>;
|
</Menu.Menu>;
|
||||||
|
|
Loading…
Reference in a new issue