Fix missing key warning on TableCard devdocs example.

This commit is contained in:
Jeff Stieler 2018-12-07 16:47:30 -07:00
parent a393ba543b
commit 71e210d1f8
1 changed files with 5 additions and 1 deletions

View File

@ -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 },