Modal for submitting predictions for matches in a creator event. Users can predict outcomes for multiple matches at once.
Required Features
-
Match Selection:
- List all unpredicted matches for the event
- Filter: "All Matches", "Starting Soon", "By Date"
- Checkbox to select multiple matches
-
Prediction Form (for each selected match):
- Match details (Team A vs Team B, time)
- Outcome selector: Team A, Team B, Draw (radio buttons or toggle)
- Visual indicator of current selection
-
Batch Submission:
- Review all predictions before submitting
- "Submit All Predictions" button
- Transaction signing
- Progress indicator for multi-prediction submission
-
Validations:
- Match must not have started
- User must have joined event
- User cannot predict same match twice
- Outcome must be selected
-
Success State:
- Show submitted predictions
- "View My Predictions" button
- "Predict More" button
Files to create:
frontend/src/component/creator-events/PredictionModal.tsx
frontend/src/component/creator-events/MatchPredictionCard.tsx
Modal for submitting predictions for matches in a creator event. Users can predict outcomes for multiple matches at once.
Required Features
Match Selection:
Prediction Form (for each selected match):
Batch Submission:
Validations:
Success State:
Files to create:
frontend/src/component/creator-events/PredictionModal.tsxfrontend/src/component/creator-events/MatchPredictionCard.tsx