Skip to content

Commit

Permalink
feat(wrapper/cards): re-add "Default" as FeatureCard (#2990)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri committed Apr 27, 2024
1 parent 49d5cbd commit 205a28b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jsHelper/spicetifyWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ window.Spicetify = {
Toggle: functionModules.find(m => m.toString().includes("onSelected") && m.toString().includes('type:"checkbox"')),
Cards: {
Default: reactComponentsUI.Card,
FeatureCard: functionModules.find(
m => m.toString().includes("?highlight") && m.toString().includes("headerText") && m.toString().includes("imageContainer")
),
Hero: functionModules.find(m => m?.toString().includes('"herocard-click-handler"')),
CardImage: reactComponentsUI.CardImage,
...Object.fromEntries(cards)
Expand Down

0 comments on commit 205a28b

Please sign in to comment.