Skip to content

Getting error in typescript #234

@papukumar

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>
      )}
/>

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