-
+
diff --git a/app/app/commander/[color]/page_content.tsx b/app/app/commander/[color]/page_content.tsx
index 351715c..a1a5281 100644
--- a/app/app/commander/[color]/page_content.tsx
+++ b/app/app/commander/[color]/page_content.tsx
@@ -29,7 +29,7 @@ export default function PageContent({color}: PageContentProps) {
{ loading && ( )}
- { !loading && ( )}
+ { !loading && ( )}
);
diff --git a/app/app/commander/top/page.tsx b/app/app/commander/top/page.tsx
index 8d47b8f..1851743 100644
--- a/app/app/commander/top/page.tsx
+++ b/app/app/commander/top/page.tsx
@@ -24,7 +24,7 @@ export default function Home() {
{ loading && ( )}
- { !loading && ( )}
+ { !loading && ( )}
);
diff --git a/app/app/faq/page.tsx b/app/app/faq/page.tsx
new file mode 100644
index 0000000..7bdceda
--- /dev/null
+++ b/app/app/faq/page.tsx
@@ -0,0 +1,12 @@
+export default function Home() {
+ return (
+ <>
+
+
+
Foire Aux Questions
+ WIP
+
+
+ >
+ );
+}
diff --git a/app/app/page.tsx b/app/app/page.tsx
index e4e48a0..0d0258e 100644
--- a/app/app/page.tsx
+++ b/app/app/page.tsx
@@ -2,9 +2,10 @@ export default function Home() {
return (
<>
+
CE SITE EST EN COURS DE DEVELOPPEMENT - NE SAUVEGARDEZ PAS VOS DONNÉES UNIQUEMENT SUR BRAWLSET
The BrawlSet
Un système de règles MTG basé sur le mode de jeu commander et inventé à Rennes, pays de la galette saucisse.
-Pour plus d'informations allez voir les règles ou la FAQ.
+Pour plus d'informations allez voir les
règles ou la
FAQ.
>
);
diff --git a/app/components/ui/card-group.tsx b/app/components/ui/card-group.tsx
index b72cce9..a18aad1 100644
--- a/app/components/ui/card-group.tsx
+++ b/app/components/ui/card-group.tsx
@@ -17,16 +17,17 @@ interface carte_from_stats {
}
interface CardGroupProps {
- className?: string,
- groupName: string,
- cards: carte_from_stats[],
- showPrice?: boolean,
- showStats?: boolean,
- id?: string,
- Icon?: any
+ className?: string,
+ groupName: string,
+ cards: carte_from_stats[],
+ showPrice?: boolean,
+ showStats?: boolean,
+ showPercent?: boolean,
+ id?: string,
+ Icon?: any
}
-const CardGroup = ({ className, groupName, cards, showPrice=true, showStats=true, id, Icon}: CardGroupProps) => {
+const CardGroup = ({ className, groupName, cards, showPrice=true, showStats=true,showPercent=true, id, Icon}: CardGroupProps) => {
return (
@@ -40,7 +41,7 @@ const CardGroup = ({ className, groupName, cards, showPrice=true, showStats=true
>
{cards.map((card: carte_from_stats) => (
-
+
))}
diff --git a/app/components/ui/mtg-card.tsx b/app/components/ui/mtg-card.tsx
index 7ae1dfd..92f83f3 100644
--- a/app/components/ui/mtg-card.tsx
+++ b/app/components/ui/mtg-card.tsx
@@ -19,8 +19,7 @@ const MTGCard = ({ className, imageURI, cardname, url, nbrDecks, totalDecks, per
const [loaded, setLoaded] = React.useState(false)
return (
-
{cardname}
{ nbrDecks != undefined && (
<>
- {nbrDecks} Deck{nbrDecks > 1 ? "s" : ""} sur {totalDecks} ({percentDecks}%)
+ {nbrDecks} Deck{nbrDecks > 1 ? "s" : ""}
+ { percentDecks != undefined && ( sur {totalDecks} ({percentDecks}%))}
>
)}