mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 15:56:19 -05:00
Run checks on PR made (#1063)
* Run checks on PR made * Prettify * Refine criteria * Bruh
This commit is contained in:
parent
327df35380
commit
085ef8abe5
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
|
|
@ -1,6 +1,7 @@
|
||||||
name: Tests and checks on push
|
name: Tests and checks on push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- rewrite
|
- rewrite
|
||||||
|
|
|
||||||
|
|
@ -896,7 +896,10 @@ function ConsumptionTable({
|
||||||
subWeaponId: SubWeaponId;
|
subWeaponId: SubWeaponId;
|
||||||
}) {
|
}) {
|
||||||
const { t } = useTranslation(["analyzer", "weapons"]);
|
const { t } = useTranslation(["analyzer", "weapons"]);
|
||||||
const maxSubsToUse = subWeaponId === TORPEDO_ID ? 1 : Math.max(...options.map((opt) => opt.subsUsed));
|
const maxSubsToUse =
|
||||||
|
subWeaponId === TORPEDO_ID
|
||||||
|
? 1
|
||||||
|
: Math.max(...options.map((opt) => opt.subsUsed));
|
||||||
const types = Array.from(new Set(options.map((opt) => opt.type)));
|
const types = Array.from(new Set(options.map((opt) => opt.type)));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -927,7 +930,7 @@ function ConsumptionTable({
|
||||||
</table>
|
</table>
|
||||||
<div className="analyzer__consumption-table-explanation">
|
<div className="analyzer__consumption-table-explanation">
|
||||||
{t("analyzer:consumptionExplanation", { maxSubsToUse })}
|
{t("analyzer:consumptionExplanation", { maxSubsToUse })}
|
||||||
{subWeaponId === TORPEDO_ID && <>{" "}{t("analyzer:torpedoExplanation")}</>}
|
{subWeaponId === TORPEDO_ID && <> {t("analyzer:torpedoExplanation")}</>}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user