diff --git a/src/Components/ShowAllBoards/ShowAllBoards.tsx b/src/Components/ShowAllBoards/ShowAllBoards.tsx index c70b995..bb19460 100644 --- a/src/Components/ShowAllBoards/ShowAllBoards.tsx +++ b/src/Components/ShowAllBoards/ShowAllBoards.tsx @@ -3,14 +3,19 @@ import "./index.css" import { CompleteBoard, ShowResultsContext } from "../../views/Show/ShowResults"; import { PropsWithChildren } from "react"; -export default function ShowAllBoards(props: PropsWithChildren) { +interface ShowAllBoardsProps extends PropsWithChildren { + beautify?: boolean; +} + +export default function ShowAllBoards(props: ShowAllBoardsProps) { + return ( { (context) => (
- {context.all_boards.map((board: CompleteBoard, idx: number) => )} + {context.all_boards.map((board: CompleteBoard, idx: number) => )}
) } diff --git a/src/Components/ShowCards/ShowCards.tsx b/src/Components/ShowCards/ShowCards.tsx index fe8181b..f6c5ce4 100644 --- a/src/Components/ShowCards/ShowCards.tsx +++ b/src/Components/ShowCards/ShowCards.tsx @@ -10,6 +10,7 @@ interface ShowCardsProps extends PropsWithChildren { board_number: number; dds: boolean; canClick?: boolean; + beautify?: boolean; } const OfflineBridgeSolver = React.lazy(() => import("../../views/Analysis/OfflineBridgeSolver")) diff --git a/src/views/Show/ShowResults.tsx b/src/views/Show/ShowResults.tsx index c98e054..3e7d00c 100644 --- a/src/views/Show/ShowResults.tsx +++ b/src/views/Show/ShowResults.tsx @@ -22,11 +22,11 @@ interface ShowResultsContextProps { export const ShowResultsContext = createContext({ all_boards: [], dds: false }); export default function ShowResults(props: ShowResultsProps) { - const { all_boards, dds } = props; + const { all_boards, dds, ...rest } = props; return ( {dds && } - + ) } \ No newline at end of file