Stepped pagination produces React warnings
Describe the bug When using the option paginationType: 'stepped', a couple of React warnings appear in the console: 'Warning: Each child in a list should have a unique "key" prop.' and ' Failed prop type: Invalid prop variant of value default supplied to ForwardRef(Button), expected one of ["text","outlined","contained"].'
To Reproduce Using react 16.8.5, material-table 1.39.2 Steps to reproduce the behavior:
- Set the option paginationType: 'stepped' for a table
- Look at the console to see the above React warnings
Experiencing the same issue with the steps above
I've reproduced the issue here: https://codesandbox.io/s/recursing-archimedes-91pdm
import React from "react";
import ReactDOM from "react-dom";
import MaterialTable from "material-table";
function App() {
return (
<MaterialTable
title="Basic Export Preview"
columns={[
{ title: "Name", field: "name" },
{ title: "Surname", field: "surname" },
{ title: "Birth Year", field: "birthYear", type: "numeric" },
{
title: "Birth Place",
field: "birthCity",
lookup: { 34: "İstanbul", 63: "Şanlıurfa" }
}
]}
data={[
{ name: "Mehmet", surname: "Baran", birthYear: 1987, birthCity: 63 },
{
name: "Zerya Betül",
surname: "Baran",
birthYear: 2017,
birthCity: 34
}
]}
options={{
paginationType: "stepped"
}}
/>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
I am facing this issue. I am using the MT version 1.50.0.