Skip to content

Commit

Permalink
added roses fencing types to dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
probablybenallen committed May 4, 2024
1 parent 5960605 commit 170f2fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions scores-src/src/common/sports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand All @@ -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
Expand All @@ -117,4 +122,5 @@ export const EVENT_COMPONENTS: Record<string, EventComponents<any, any>> = {
swimming: swimmingComponents,
korfball: korfballComponents,
octopush: octopushComponents,
rosesFencing: rosesFencingComponents,
};
5 changes: 3 additions & 2 deletions scores-src/src/common/sports/rosesFencing/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// // <div>
// // <h2>Add Points</h2>
// // <p>Current Score: {currentState.}</p>
// // <inputt
// // <input
// // type="number"
// // value={meta.state.points}
// // onChange={(e) => meta.setState({ points: parseInt(e.target.value) })}
Expand All @@ -26,7 +26,6 @@
//
// export type State = ReturnType<typeof typeInfo["reducer"]>;
//
// export { components, typeInfo };

import * as Yup from "yup";
import { clockTimeAt, formatMMSSMS } from "../../clock";
Expand Down Expand Up @@ -334,3 +333,5 @@ const components: EventComponents<typeof slice["actions"], State> = {
},
},
};

export { components, typeInfo };

0 comments on commit 170f2fb

Please sign in to comment.