Fix missing key warning on TableCard devdocs example.
This commit is contained in:
parent
a393ba543b
commit
71e210d1f8
|
@ -2,7 +2,11 @@
|
|||
import { TableCard } from '@woocommerce/components';
|
||||
|
||||
const noop = () => {};
|
||||
const headers = [ { label: 'Month' }, { label: 'Orders' }, { label: 'Revenue' } ];
|
||||
const headers = [
|
||||
{ key: 'month', label: 'Month' },
|
||||
{ key: 'orders', label: 'Orders' },
|
||||
{ key: 'revenue', label: 'Revenue' },
|
||||
];
|
||||
const rows = [
|
||||
[
|
||||
{ display: 'January', value: 1 },
|
||||
|
|
Loading…
Reference in New Issue