Skip to content

Instantly share code, notes, and snippets.

@dhimasanb
Created June 25, 2019 16:32
Show Gist options
  • Save dhimasanb/516e6a72785ab2a1041f18f603bfac9c to your computer and use it in GitHub Desktop.
Save dhimasanb/516e6a72785ab2a1041f18f603bfac9c to your computer and use it in GitHub Desktop.
import React from "react";
import { Table } from "antd";
import column from "./column";
const dataTable = ({ dataSource }) => {
return (
<Table
pagination={false}
dataSource={dataSource}
columns={[
column("No", "no", 200),
column("Quantity", "quantity", 200),
column("Rupiah", "rupiah", 200)
]}
/>
);
};
export default dataTable;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment