Skip to content

Commit 276c64f

Browse files
Sean PrashadSean Prashad
authored andcommitted
Move and rename table rendering component
1 parent df6a7f1 commit 276c64f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web/src/components/ReactTable/index.js renamed to web/src/components/Table/TableView/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Table } from 'reactstrap';
33
import { useTable, useSortBy } from 'react-table';
44
import { FaSortAlphaUp, FaSortAlphaDown } from 'react-icons/fa';
55

6-
function ReactTable({ columns, data }) {
6+
function TableView({ columns, data }) {
77
const {
88
getTableProps,
99
getTableBodyProps,
@@ -63,4 +63,4 @@ function ReactTable({ columns, data }) {
6363
);
6464
}
6565

66-
export default ReactTable;
66+
export default TableView;

web/src/components/Table/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { Container, Row, Col, Badge, NavLink } from 'reactstrap';
3-
import ReactTable from '../ReactTable';
3+
import TableView from './TableView';
44

55
import questionList from '../../data';
66

@@ -61,7 +61,7 @@ const Table = () => {
6161
<Col>
6262
<Row>
6363
<Col>
64-
<ReactTable columns={columns} data={data} />
64+
<TableView columns={columns} data={data} />
6565
</Col>
6666
</Row>
6767
</Col>

0 commit comments

Comments
 (0)