Skip to content

Commit

Permalink
feat(wrapper): remove Base card React component (#2742)
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetTechuila committed Dec 30, 2023
1 parent 6dab5ff commit 01df24a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,20 +240,7 @@ window.Spicetify = {
"Toggle"
];

const REACT_CARD_COMPONENTS = [
"Default",
"Hero",
"CardImage",
"Base",
"Album",
"Artist",
"Audiobook",
"Episode",
"Playlist",
"Profile",
"Show",
"Track"
];
const REACT_CARD_COMPONENTS = ["Default", "Hero", "CardImage", "Album", "Artist", "Audiobook", "Episode", "Playlist", "Profile", "Show", "Track"];

const REACT_HOOK = ["DragHandler", "usePanelState", "useExtractedColor"];

Expand Down Expand Up @@ -484,7 +471,6 @@ window.Spicetify = {
Chip: modules.find(m => m?.render?.toString().includes("invertedDark") && m?.render?.toString().includes("isUsingKeyboard")),
Toggle: functionModules.find(m => m.toString().includes("onSelected") && m.toString().includes('type:"checkbox"')),
Cards: {
Base: modules.find(m => m?.type?.toString().includes("navigationUrl") && m?.type?.toString().includes("isHero")),
Default: modules.find(m => m?.toString().includes('"card-click-handler"')),
Hero: modules.find(m => m?.toString().includes('"herocard-click-handler"')),
CardImage: functionModules.find(m => m.toString().includes("isHero") && m.toString().includes("withWaves")),
Expand Down

0 comments on commit 01df24a

Please sign in to comment.