pages/searchbookings.js import React, { Component } from "react"; import { connect } from "react-redux"; import { checkBooking } from "../Action/action"; import icon from "../images/football.svg"; export class Search_Booking extends Component { state = { Search: undefined }; handleHomePage = () => { //route to home page }; render() { return (
{/* header content goes here */}
{/* input field for the search field goes here with name "Search" */}
Booking ID Slot Date Name Contact No Game Slots
{/* Display the Booking Details use id as Book_List for td and ClassName as Booking_List for tr and tbody */}
); } } const mapStateToProps = state => { return { checkBooking: state.bookingCheck, details: state.details }; }; const mapDispatchToProps = dispatch => { return { check: payload => dispatch(checkBooking(payload)), getGameAndBooking: () => dispatch({ type: "GAME_BOOKING" }) }; }; export default connect( mapStateToProps, mapDispatchToProps )(Search_Booking);