fix badges with custom component

main
Vendicated 6 months ago
parent 78183eb226
commit 520e915168
No known key found for this signature in database
GPG Key ID: D66986BAF75ECF18

@ -78,7 +78,7 @@ export default definePlugin({
},
// replace their component with ours if applicable
{
match: /(?<=text:(\i)\.description,spacing:12,)children:/,
match: /(?<=text:(\i)\.description,spacing:12,.{0,50})children:/,
replace: "children:$1.component ? () => $self.renderBadgeComponent($1) :"
},
// conditionally override their onClick with badge.onClick if it exists

Loading…
Cancel
Save