From 170f2fb3ea0e6bb6e4f134a9c7ec45b496c78008 Mon Sep 17 00:00:00 2001 From: probablybenallen <26507833+probablybenallen@users.noreply.github.com> Date: Sat, 4 May 2024 09:22:34 +0100 Subject: [PATCH] added roses fencing types to dictionary --- scores-src/src/common/sports/index.ts | 6 ++++++ scores-src/src/common/sports/rosesFencing/index.tsx | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/scores-src/src/common/sports/index.ts b/scores-src/src/common/sports/index.ts index b386949..bec242f 100644 --- a/scores-src/src/common/sports/index.ts +++ b/scores-src/src/common/sports/index.ts @@ -70,6 +70,10 @@ import { typeInfo as octopushTypeInfo, components as octopushComponents, } from "./octopush"; +import { + typeInfo as rosesFencingTypeInfo, + components as rosesFencingComponents, +} from "./rosesFencing"; import { EventComponents, EventTypeInfo } from "../types"; export const EVENT_TYPES: Record< @@ -95,6 +99,7 @@ export const EVENT_TYPES: Record< swimming: swimmingTypeInfo, korfball: korfballTypeInfo, octopush: octopushTypeInfo, + rosesFencing: rosesFencingTypeInfo, }; // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -117,4 +122,5 @@ export const EVENT_COMPONENTS: Record> = { swimming: swimmingComponents, korfball: korfballComponents, octopush: octopushComponents, + rosesFencing: rosesFencingComponents, }; diff --git a/scores-src/src/common/sports/rosesFencing/index.tsx b/scores-src/src/common/sports/rosesFencing/index.tsx index 6ae7f6d..c3bf634 100644 --- a/scores-src/src/common/sports/rosesFencing/index.tsx +++ b/scores-src/src/common/sports/rosesFencing/index.tsx @@ -14,7 +14,7 @@ // //
// //

Add Points

// //

Current Score: {currentState.}

-// // meta.setState({ points: parseInt(e.target.value) })} @@ -26,7 +26,6 @@ // // export type State = ReturnType; // -// export { components, typeInfo }; import * as Yup from "yup"; import { clockTimeAt, formatMMSSMS } from "../../clock"; @@ -334,3 +333,5 @@ const components: EventComponents = { }, }, }; + +export { components, typeInfo };