This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
This application support importing modules using absolute paths.
To import a module located at src/components/Button.js, you can import the module like so:
import Button from "components/Button";
Date filter component takes in default Ranges , selected filter value, and a function to set the selected value as props
import DateFilter from "components/DateFilter";
<DateFilter
selected={selectedDate}
setSelected={onSelectDateFilter}
defaultRanges={defaultRanges}
/>;
Date filter component takes in options to select from , selected filter value, and a function to set the selected value as props
import FilterComponent from "components/FilterComponent";
<FilterComponent
options={filterOptions}
selected={selectedFilter}
setSelected={onSelectFilter}
/>;
import LoadingComponent from "components/LoadingComponent";
<LoadingComponent />;
import PaginationComponent from "components/PaginationComponent";
<PaginationComponent
activePage={activePage}
countPerPage={12}
totalCount={totalCount}
onChange={onPageChange}
/>;
import TableComponent from "components/TableComponent";
<TableComponent tableData={tableData} loading={tableLoading} />;