@codecademy/gamut
72.0.272.0.3-alpha.982f9f.0
dist/DataList/DataList.js~
dist/DataList/DataList.jsModified+22−1
Index: package/dist/DataList/DataList.js
===================================================================
--- package/dist/DataList/DataList.js
+++ package/dist/DataList/DataList.js
@@ -9,5 +9,26 @@
...rest,
scrollable: false,
shadow: false
});
-};
\ No newline at end of file
+};
+
+// USE FOR TESTING ONLY
+// UNCOMMENT AND RUN THE FOLLOWING CODE TO TEST THAT size: 'content' errors
+
+// const TestingDataList = () => {
+// return (
+// <DataList variant="default" 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