add 11th edition support
This commit is contained in:
+8
-4
@@ -112,6 +112,10 @@ function App() {
|
|||||||
setRoster(roster);
|
setRoster(roster);
|
||||||
setEdition(10);
|
setEdition(10);
|
||||||
setError("");
|
setError("");
|
||||||
|
} else if (roster.gameType == "Warhammer 40,000 11th Edition") {
|
||||||
|
setRoster(roster);
|
||||||
|
setEdition(11);
|
||||||
|
setError("");
|
||||||
}
|
}
|
||||||
posthog?.capture?.("user_loaded_roster_from_localstorage", {
|
posthog?.capture?.("user_loaded_roster_from_localstorage", {
|
||||||
roster_faction: roster.forces[0].catalog,
|
roster_faction: roster.forces[0].catalog,
|
||||||
@@ -242,7 +246,7 @@ function App() {
|
|||||||
fontWeight: 400,
|
fontWeight: 400,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Now with 10th edition support!
|
Now with 11th edition support!
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
<div className="subheader">
|
<div className="subheader">
|
||||||
@@ -375,8 +379,8 @@ function App() {
|
|||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
{
|
{
|
||||||
// only show when 10th edition
|
// only show when 10th or 11th edition
|
||||||
edition === 10 && (
|
(edition === 10 || edition === 11) && (
|
||||||
<label
|
<label
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
@@ -437,7 +441,7 @@ function App() {
|
|||||||
{error}
|
{error}
|
||||||
</div>
|
</div>
|
||||||
{edition === 9 && <Roster roster={roster} onePerPage={onePerPage} />}
|
{edition === 9 && <Roster roster={roster} onePerPage={onePerPage} />}
|
||||||
{edition === 10 && (
|
{(edition === 10 || edition === 11) && (
|
||||||
<Roster10th
|
<Roster10th
|
||||||
roster={roster}
|
roster={roster}
|
||||||
onePerPage={onePerPage}
|
onePerPage={onePerPage}
|
||||||
|
|||||||
Reference in New Issue
Block a user