score:0

Accepted answer

the error message says that you call your <statuslayout> component but without the mandatory props that you declared in its definition const statuslayout = styled.div<ordercardprops>

for example you could call it like:

<statuslayout
  order={myorder}
  client={someclient}
  orderdetail={myorderdetail}
  confirmation={someconfirmation}
  shipping={theshipping}
  payment={andthepayment}
>
  // children...
</statuslayout>

that being said, since <statuslayout> is just a styled div, all these props can only be used in the style definition (because styled-components will not pass them to the div), which is unlikely, so it is questionable why you need them.


Related Query

More Query from same tag