- FancyScribe
+
+ FancyScribe
+
A fancy way to view your Warhammer 40k BattleScribe rosters
@@ -139,7 +141,7 @@ function App() {
type="checkbox"
onChange={(e) => setOnePerPage(e.target.checked)}
/>
- One Datacard per Page when printing
+ One Datacard per Page when Printing
diff --git a/src/Roster.jsx b/src/Roster.jsx
index 9959c53..e5a41d4 100644
--- a/src/Roster.jsx
+++ b/src/Roster.jsx
@@ -1,3 +1,4 @@
+import { useState } from "react";
import factionBackground from "./assets/factionBackground.png";
import adeptusAstartesIcon from "./assets/adeptusAstartesIcon.png";
import rangedIcon from "./assets/rangedIcon.png";
@@ -109,6 +110,7 @@ const Force = ({ force, onePerPage }) => {
};
const Unit = ({ unit, index, catalog, onePerPage }) => {
+ const [hide, setHide] = useState(false);
let {
name,
weapons,
@@ -160,7 +162,9 @@ const Unit = ({ unit, index, catalog, onePerPage }) => {
return (