mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 23:27:55 -05:00
Fix bracket map list dialog remembering selection after closing
This commit is contained in:
@@ -44,13 +44,11 @@ import {
|
||||
import styles from "./BracketMapListDialog.module.css";
|
||||
|
||||
export function BracketMapListDialog({
|
||||
isOpen,
|
||||
close,
|
||||
bracket,
|
||||
bracketIdx,
|
||||
isPreparing,
|
||||
}: {
|
||||
isOpen: boolean;
|
||||
close: () => void;
|
||||
bracket: Bracket;
|
||||
bracketIdx: number;
|
||||
@@ -294,7 +292,7 @@ export function BracketMapListDialog({
|
||||
return (
|
||||
<SendouDialog
|
||||
heading={`Maplist selection (${bracket.name})`}
|
||||
isOpen={isOpen}
|
||||
isOpen
|
||||
onClose={close}
|
||||
isFullScreen
|
||||
>
|
||||
|
||||
@@ -293,13 +293,11 @@ function BracketStarter({
|
||||
|
||||
return (
|
||||
<>
|
||||
{isMounted ? (
|
||||
{isMounted && dialogOpen ? (
|
||||
<BracketMapListDialog
|
||||
isOpen={dialogOpen}
|
||||
close={close}
|
||||
bracket={bracket}
|
||||
bracketIdx={bracketIdx}
|
||||
key={bracketIdx}
|
||||
/>
|
||||
) : null}
|
||||
<SendouButton
|
||||
@@ -340,14 +338,12 @@ function MapPreparer({
|
||||
|
||||
return (
|
||||
<>
|
||||
{isMounted ? (
|
||||
{isMounted && dialogOpen ? (
|
||||
<BracketMapListDialog
|
||||
isOpen={dialogOpen}
|
||||
close={close}
|
||||
bracket={bracket}
|
||||
bracketIdx={bracketIdx}
|
||||
isPreparing
|
||||
key={bracketIdx}
|
||||
/>
|
||||
) : null}
|
||||
<div className="stack sm horizontal ml-auto">
|
||||
|
||||
Reference in New Issue
Block a user