@codecademy/gamut
72.0.272.0.3-alpha.982f9f.0
dist/DataList/DataTable.js~
dist/DataList/DataTable.jsModified+24−1
Index: package/dist/DataList/DataTable.js
===================================================================
--- package/dist/DataList/DataTable.js
+++ package/dist/DataList/DataTable.js
@@ -6,5 +6,28 @@
variant: "table",
onRowExpand: undefined,
onRowSelect: undefined
});
-};
\ No newline at end of file
+};
+
+// USE FOR TESTING ONLY
+// UNCOMMENT AND RUN THE FOLLOWING CODE TO TEST THAT size: 'content' errors
+
+// const TestingDataTable = () => {
+// return (
+// <DataTable
+// columns={[
+// { header: 'Name', key: 'name', size: 'lg' },
+// { header: 'Age', key: 'age', size: 'sm' },
+// { header: 'Species', key: 'species', size: 'md' },
+// { header: 'Ship', key: 'ship', size: 'content' },
+// ]}
+// id="test"
+// idKey="id"
+// rows={[
+// { id: 1, name: 'John Doe', age: 30, species: 'Human', ship: 'USS Enterprise' },
+// { id: 2, name: 'Jane Doe', age: 25, species: 'Human', ship: 'USS Enterprise' },
+// { id: 3, name: 'John Smith', age: 35, species: 'Human', ship: 'USS Enterprise' },
+// ]}
+// />
+// )
+// }
\ No newline at end of file