<DataGrid
  {...data}
  loading={loading}
  getRowSpacing={getRowSpacing}
  sx={{
    [`& .${gridClasses.row}`]: {
      bgcolor: (theme) =>
        theme.palette.mode === 'light' ? grey[200] : grey[900],
    },
  }}
/>