social overhaul
This commit is contained in:
@@ -14,6 +14,7 @@ interface BracketProps {
|
||||
renderMatch?: (match: Match) => React.ReactNode;
|
||||
onMatchTap?: (match: Match) => void;
|
||||
selectedMatchLid?: number | null;
|
||||
nextUpMatchId?: string;
|
||||
}
|
||||
|
||||
export const Bracket: React.FC<BracketProps> = ({
|
||||
@@ -24,6 +25,7 @@ export const Bracket: React.FC<BracketProps> = ({
|
||||
renderMatch,
|
||||
onMatchTap,
|
||||
selectedMatchLid,
|
||||
nextUpMatchId,
|
||||
}) => {
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
const svgRef = useRef<SVGSVGElement>(null);
|
||||
@@ -149,6 +151,7 @@ export const Bracket: React.FC<BracketProps> = ({
|
||||
groupConfig={groupConfig}
|
||||
onTap={onMatchTap}
|
||||
selected={selectedMatchLid === match.lid}
|
||||
nextUpMatchId={nextUpMatchId}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user