/* eslint no-unused-vars: 0 */ import React from 'react'; import BootstrapTable from 'react-bootstrap-table-next'; import Code from 'components/common/code-block'; import { productsGenerator } from 'utils/common'; const products = productsGenerator(); const headerSortingStyle = { backgroundColor: '#c8e6c9' }; const columns = [{ dataField: 'id', text: 'Product ID', sort: true, headerSortingStyle }, { dataField: 'name', text: 'Product Name', sort: true, headerSortingStyle }, { dataField: 'price', text: 'Product Price' }]; const sourceCode = `\ import BootstrapTable from 'react-bootstrap-table-next'; const headerSortingStyle = { backgroundColor: '#c8e6c9' }; const columns = [{ dataField: 'id', text: 'Product ID', sort: true, headerSortingStyle }, { dataField: 'name', text: 'Product Name', sort: true, headerSortingStyle }, { dataField: 'price', text: 'Product Price' }]; `; export default () => (
{ sourceCode }
);