tidy up info strings
This commit is contained in:
@@ -26,9 +26,7 @@ function InfoComponent(args) {
|
||||
|
||||
if (isSkill) {
|
||||
const regEx = /(RedPower|BluePower|GreenPower|RedLife|BlueLife|GreenLife|SpeedStat)/;
|
||||
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => {
|
||||
return shapes[match]();
|
||||
});
|
||||
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => shapes[match]());
|
||||
|
||||
return (
|
||||
<div class="info-skill">
|
||||
@@ -110,9 +108,7 @@ function InfoComponent(args) {
|
||||
);
|
||||
});
|
||||
const regEx = /(RedPower|BluePower|GreenPower|RedLife|BlueLife|GreenLife|SpeedStat)/;
|
||||
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => {
|
||||
return shapes[match]();
|
||||
});
|
||||
const infoDescription = reactStringReplace(fullInfo.description, regEx, match => shapes[match]());
|
||||
|
||||
return (
|
||||
<div class="info-spec">
|
||||
|
||||
Reference in New Issue
Block a user