Skip to content

Commit

Permalink
fix(find-my-combos): scss
Browse files Browse the repository at this point in the history
  • Loading branch information
ldeluigi committed Jul 4, 2024
1 parent 0604a4c commit 435d301
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
7 changes: 1 addition & 6 deletions src/pages/find-my-combos.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@
@apply uppercase;
}

div {
width: 100%;
@apply flex flex-col items-center justify-center;
}

section {
@apply flex flex-col items-center justify-center py-4;
@apply flex flex-col items-center justify-center py-4 w-full;
}

.decklistInput {
Expand Down
11 changes: 7 additions & 4 deletions src/pages/find-my-combos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,11 @@ const FindMyCombos = () => {
try {
const deck = await decklistService.getCardsFromUrl(deckUrl);
setDeckUrlHint("");
setDecklist(deck.main.join("\n"));
setCommanderList(deck.commanders.join("\n"));
const decklist = deck.main.join("\n");
const commanderList = deck.commanders.join("\n");
setDecklist(decklist);
setCommanderList(commanderList);
lookupCombos(decklist, commanderList);
} catch (error: any) {
const err = error as ErrorResult;
setDeckUrlHint(err.error);
Expand Down Expand Up @@ -212,7 +215,7 @@ const FindMyCombos = () => {
)}

{!decklist && (
<div>
<section>
<p className={`${styles.or} heading-subtitle`}>
or
</p>
Expand All @@ -239,7 +242,7 @@ const FindMyCombos = () => {
>
Submit URL
</button>
</div>
</section>
)}
</section>

Expand Down

0 comments on commit 435d301

Please sign in to comment.