Skip to content

Getting error in typescript #234

Description

@papukumar

Hi, getting following errors in typescript

Image

// Other import statements
import { SizeMe } from "react-sizeme";

<SizeMe
      monitorWidth
      render={({ size }) => (
          <div className={`half-width-card ${size?.width < 850 ? "flex-direction" : ""}`}>
              <CardComponent
                  key={CALL_AI_LOCATION_TRAFFIC_BY_TIME_INTERNAL}
                  reportsDetails={reportDetails?.[CALL_AI_LOCATION_TRAFFIC_BY_TIME_INTERNAL] || reportConfigs?.[CALL_AI_LOCATION_TRAFFIC_BY_TIME_INTERNAL]}
                  dispatch={dispatch}
                  handleAPICall={this.handleAPICall}
                  filterData={filterData}
                  fullWidth={false}
                  router={router}
                  customFullWidth
                  size={size}
              />
              <CardComponent
                  key={CALL_AI_LOCATION_CUSTOMER_TYPE_INTERNAL}
                  reportsDetails={reportDetails?.[CALL_AI_LOCATION_CUSTOMER_TYPE_INTERNAL] || reportConfigs?.[CALL_AI_LOCATION_CUSTOMER_TYPE_INTERNAL]}
                  dispatch={dispatch}
                  handleAPICall={this.handleAPICall}
                  filterData={filterData}
                  fullWidth={false}
                  router={router}
                  customFullWidth
                  size={size}
              />
          </div>
      )}
/>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions