Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix bettershoppreview patch
Browse files Browse the repository at this point in the history
  • Loading branch information
verticalsync committed Apr 27, 2024
1 parent d0ace3b commit 68dd488
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/suncordplugins/betterShopPreview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ export default definePlugin({
settings,
patches: [
{
find: "}),(0,l.jsx)(T.default.Title,{className:en.title,children:er.default.Messages.COLLECTIBLES_SHOP})]",
// this can use regex, will do later.
find: "}),(0,l.jsx)(T.default.Title,{className:ei.title,children:er.default.Messages.COLLECTIBLES_SHOP})]",
replacement: [{
match: "{className:en.title,children:er.default.Messages.COLLECTIBLES_SHOP}",
replace: "{className:en.title,children:[er.default.Messages.COLLECTIBLES_SHOP,$self.PreviewToggle()]}"
match: "{className:ei.title,children:er.default.Messages.COLLECTIBLES_SHOP}",
replace: "{className:ei.title,children:[er.default.Messages.COLLECTIBLES_SHOP,$self.PreviewToggle()]}"
}]
}
],
Expand Down

0 comments on commit 68dd488

Please sign in to comment.