Skip to content

Commit

Permalink
feat(wrapper): add Dropdown ReactComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed Dec 7, 2023
1 parent 5745752 commit e3260eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ window.Spicetify = {
"ButtonSecondary",
"ButtonTertiary",
"Snackbar",
"Chip"
"Chip",
"Dropdown",
];

const REACT_HOOK = ["DragHandler", "usePanelState", "useExtractedColor"];
Expand Down Expand Up @@ -427,6 +428,9 @@ window.Spicetify = {
styledImage: functionModules.find(m => m.toString().includes("placeholderSrc"))
},
Chip: modules.find(m => m?.render?.toString().includes("invertedDark") && m?.render?.toString().includes("isUsingKeyboard")),
Dropdown: Object.values(
require(Object.entries(require.m).find(([, value]) => value.toString().includes("dropDown") && value.toString().includes("isSafari"))[0])
).find(m => typeof m === "function"),
...Object.fromEntries(menus)
},
ReactHook: {
Expand Down

0 comments on commit e3260eb

Please sign in to comment.