├── img
├── login.png
├── sale.png
├── alerts.png
├── backup.png
├── budget.png
├── discount.png
├── payment.png
├── products.png
├── cashier-open.png
├── past-cashiers.png
├── cashier-closed.png
├── product-detail.png
└── register-product.png
├── src
├── styles
│ ├── index.js
│ ├── fade.css
│ ├── global.js
│ └── colors.js
├── screens
│ ├── cashier
│ │ ├── components
│ │ │ ├── past-cashier
│ │ │ │ ├── config
│ │ │ │ │ ├── index.js
│ │ │ │ │ └── tabConfig.js
│ │ │ │ └── components
│ │ │ │ │ ├── Title.js
│ │ │ │ │ └── DateFilter.js
│ │ │ ├── current-cashier
│ │ │ │ └── components
│ │ │ │ │ ├── cashier-open
│ │ │ │ │ ├── config
│ │ │ │ │ │ ├── index.js
│ │ │ │ │ │ └── tabConfig.js
│ │ │ │ │ └── components
│ │ │ │ │ │ └── top-buttons-values
│ │ │ │ │ │ ├── button-config.js
│ │ │ │ │ │ ├── CashierButton.js
│ │ │ │ │ │ └── dialog-config.js
│ │ │ │ │ └── cashier-closed
│ │ │ │ │ ├── components
│ │ │ │ │ └── CashierClosedAlert.js
│ │ │ │ │ └── index.js
│ │ │ └── bottom-valeus
│ │ │ │ ├── BottomItem.js
│ │ │ │ ├── item-config.js
│ │ │ │ └── index.js
│ │ └── cashier-utils.js
│ ├── user
│ │ └── config
│ │ │ ├── index.js
│ │ │ ├── tabConfig.js
│ │ │ └── filterConfig.js
│ ├── budget
│ │ ├── config
│ │ │ ├── index.js
│ │ │ ├── tabConfig.js
│ │ │ └── filterConfig.js
│ │ └── components
│ │ │ ├── PayBudgetButton.js
│ │ │ ├── SelectLimitDate.js
│ │ │ ├── BudgetExtraComponent.js
│ │ │ └── BudgetStatus.js
│ ├── customer
│ │ ├── config
│ │ │ ├── index.js
│ │ │ ├── tabConfig.js
│ │ │ └── filterConfig.js
│ │ └── components
│ │ │ └── TopContent.js
│ ├── product
│ │ └── config
│ │ │ ├── index.js
│ │ │ ├── tabConfig.js
│ │ │ └── filterConfig.js
│ ├── provider
│ │ ├── config
│ │ │ ├── index.js
│ │ │ ├── tabConfig.js
│ │ │ └── filterConfig.js
│ │ └── index.js
│ ├── sales
│ │ ├── config
│ │ │ ├── index.js
│ │ │ ├── tabConfig.js
│ │ │ └── filterConfig.js
│ │ └── index.js
│ └── stock
│ │ ├── config
│ │ ├── index.js
│ │ ├── tabConfig.js
│ │ └── filterConfig.js
│ │ └── index.js
├── store
│ ├── sagas
│ │ ├── event-handlers-types
│ │ │ ├── backup.js
│ │ │ ├── brand.js
│ │ │ ├── cashier.js
│ │ │ ├── user.js
│ │ │ ├── sale.js
│ │ │ ├── budget.js
│ │ │ ├── product.js
│ │ │ ├── customer.js
│ │ │ ├── provider.js
│ │ │ └── stock.js
│ │ ├── social.js
│ │ ├── execRequest.js
│ │ ├── entitiesTypes.js
│ │ ├── eventHandler.js
│ │ ├── brand.js
│ │ ├── customerDebits.js
│ │ ├── print.js
│ │ ├── user.js
│ │ ├── provider.js
│ │ ├── alerts.js
│ │ └── customer.js
│ ├── ducks
│ │ ├── social.js
│ │ ├── index.js
│ │ ├── auth.js
│ │ ├── brand.js
│ │ ├── print.js
│ │ └── customerDebits.js
│ └── index.js
├── index.js
├── utils
│ └── filter
│ │ ├── functionalFilter.js
│ │ ├── textFilter.js
│ │ ├── numericFilter.js
│ │ ├── index.js
│ │ └── dateFilter.js
├── config
│ └── reactotron.js
├── components
│ ├── login
│ │ └── components
│ │ │ ├── styles.js
│ │ │ └── LoginForm.js
│ ├── header
│ │ ├── index.js
│ │ └── components
│ │ │ ├── toolbar
│ │ │ ├── components
│ │ │ │ ├── backup-component
│ │ │ │ │ ├── buttons-config.js
│ │ │ │ │ └── ButtonAction.js
│ │ │ │ ├── about-me
│ │ │ │ │ └── index.js
│ │ │ │ └── UserInfo.js
│ │ │ └── index.js
│ │ │ └── navigation-menu
│ │ │ ├── index.js
│ │ │ └── navigation-items.js
│ ├── common
│ │ ├── sale-confirmation
│ │ │ ├── errors.js
│ │ │ └── components
│ │ │ │ ├── CashierClosedAlert.js
│ │ │ │ ├── form-payment
│ │ │ │ ├── items-config.js
│ │ │ │ └── FormPaymentItem.js
│ │ │ │ └── FooterItems.js
│ │ ├── product-sale-component
│ │ │ ├── calculateValues.js
│ │ │ └── components
│ │ │ │ ├── select-product
│ │ │ │ └── components
│ │ │ │ │ ├── filter
│ │ │ │ │ └── components
│ │ │ │ │ │ └── select-filter
│ │ │ │ │ │ └── FilterOptionItem.js
│ │ │ │ │ └── SelectProductsValues.js
│ │ │ │ ├── footer-values
│ │ │ │ └── components
│ │ │ │ │ ├── RemoveButton.js
│ │ │ │ │ └── ObservationItem.js
│ │ │ │ └── top-row
│ │ │ │ ├── components
│ │ │ │ ├── CustomerDebits.js
│ │ │ │ └── select-customer
│ │ │ │ │ └── components
│ │ │ │ │ └── SelectUserDialog.js
│ │ │ │ └── index.js
│ │ ├── Dialog.js
│ │ ├── sale-detail-dialog
│ │ │ └── index.js
│ │ ├── FullScreenDialog.js
│ │ ├── ActionButton.js
│ │ ├── ItemFiltered.js
│ │ └── filter
│ │ │ └── components
│ │ │ └── DateFilterDialog.js
│ └── Root.js
├── App.js
└── Router.js
├── public
├── favicon.ico
├── back-end
│ ├── events-handlers
│ │ ├── backup
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ ├── brand
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ ├── cashier
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ ├── user
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ ├── sale
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ ├── budget
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ ├── product
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ ├── customer
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ ├── provider
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ ├── stock
│ │ │ ├── types.js
│ │ │ └── index.js
│ │ └── index.js
│ ├── config
│ │ └── database.js
│ ├── models
│ │ ├── brand.js
│ │ ├── stock.js
│ │ ├── user.js
│ │ ├── index.js
│ │ ├── provider.js
│ │ ├── product.js
│ │ ├── customer.js
│ │ ├── budget.js
│ │ ├── cashier.js
│ │ └── sale.js
│ ├── entitiesTypes.js
│ ├── controllers
│ │ ├── brand
│ │ │ └── index.js
│ │ ├── cashier
│ │ │ └── index.js
│ │ ├── budget
│ │ │ └── index.js
│ │ ├── user
│ │ │ └── index.js
│ │ ├── customer
│ │ │ └── index.js
│ │ ├── provider
│ │ │ └── index.js
│ │ ├── sale
│ │ │ └── index.js
│ │ ├── product
│ │ │ └── index.js
│ │ ├── stock
│ │ │ └── index.js
│ │ └── backup
│ │ │ └── index.js
│ ├── electron-wait-react.js
│ └── database
│ │ └── migrations
│ │ ├── 20181119031759-create-brands.js
│ │ ├── 20181115043723-create-users.js
│ │ ├── 20181120003008-create-stocks.js
│ │ ├── 20181214011402-create-providers.js
│ │ ├── 20181119222451-create-products.js
│ │ ├── 20181214005947-create-customers.js
│ │ ├── 20181218211159-create-budgets.js
│ │ ├── 20181222225729-create-cashiers.js
│ │ └── 20181208015057-create-sales.js
├── manifest.json
├── index.html
└── electron.js
├── resources
└── icon.png
├── .flowconfig
├── .editorconfig
├── .babelrc
├── .gitignore
├── .sequelizerc
├── docker-compose.yml
├── LICENSE
├── .eslintrc.json
└── package.json
/img/login.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/login.png
--------------------------------------------------------------------------------
/img/sale.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/sale.png
--------------------------------------------------------------------------------
/img/alerts.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/alerts.png
--------------------------------------------------------------------------------
/img/backup.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/backup.png
--------------------------------------------------------------------------------
/img/budget.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/budget.png
--------------------------------------------------------------------------------
/img/discount.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/discount.png
--------------------------------------------------------------------------------
/img/payment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/payment.png
--------------------------------------------------------------------------------
/img/products.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/products.png
--------------------------------------------------------------------------------
/src/styles/index.js:
--------------------------------------------------------------------------------
1 | import colors from './colors';
2 |
3 | export default { colors };
4 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/resources/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/resources/icon.png
--------------------------------------------------------------------------------
/img/cashier-open.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/cashier-open.png
--------------------------------------------------------------------------------
/img/past-cashiers.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/past-cashiers.png
--------------------------------------------------------------------------------
/img/cashier-closed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/cashier-closed.png
--------------------------------------------------------------------------------
/img/product-detail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/product-detail.png
--------------------------------------------------------------------------------
/img/register-product.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/steniowagner/store-system/HEAD/img/register-product.png
--------------------------------------------------------------------------------
/src/screens/cashier/components/past-cashier/config/index.js:
--------------------------------------------------------------------------------
1 | import tabConfig from './tabConfig';
2 |
3 | export default { tabConfig };
4 |
--------------------------------------------------------------------------------
/src/screens/cashier/components/current-cashier/components/cashier-open/config/index.js:
--------------------------------------------------------------------------------
1 | import tabConfig from './tabConfig';
2 |
3 | export default { tabConfig };
4 |
--------------------------------------------------------------------------------
/src/screens/user/config/index.js:
--------------------------------------------------------------------------------
1 | import filterConfig from './filterConfig';
2 | import tabConfig from './tabConfig';
3 |
4 | export default { filterConfig, tabConfig };
5 |
--------------------------------------------------------------------------------
/src/screens/budget/config/index.js:
--------------------------------------------------------------------------------
1 | import filterConfig from './filterConfig';
2 | import tabConfig from './tabConfig';
3 |
4 | export default { filterConfig, tabConfig };
5 |
--------------------------------------------------------------------------------
/src/screens/customer/config/index.js:
--------------------------------------------------------------------------------
1 | import filterConfig from './filterConfig';
2 | import tabConfig from './tabConfig';
3 |
4 | export default { filterConfig, tabConfig };
5 |
--------------------------------------------------------------------------------
/src/screens/product/config/index.js:
--------------------------------------------------------------------------------
1 | import filterConfig from './filterConfig';
2 | import tabConfig from './tabConfig';
3 |
4 | export default { filterConfig, tabConfig };
5 |
--------------------------------------------------------------------------------
/src/screens/provider/config/index.js:
--------------------------------------------------------------------------------
1 | import filterConfig from './filterConfig';
2 | import tabConfig from './tabConfig';
3 |
4 | export default { filterConfig, tabConfig };
5 |
--------------------------------------------------------------------------------
/src/screens/sales/config/index.js:
--------------------------------------------------------------------------------
1 | import filterConfig from './filterConfig';
2 | import tabConfig from './tabConfig';
3 |
4 | export default { filterConfig, tabConfig };
5 |
--------------------------------------------------------------------------------
/src/screens/stock/config/index.js:
--------------------------------------------------------------------------------
1 | import filterConfig from './filterConfig';
2 | import tabConfig from './tabConfig';
3 |
4 | export default { filterConfig, tabConfig };
5 |
--------------------------------------------------------------------------------
/.flowconfig:
--------------------------------------------------------------------------------
1 | [ignore]
2 | .*node_modules/.*
3 | .*src/back-end/.*
4 |
5 | [include]
6 |
7 | [libs]
8 |
9 | [lints]
10 |
11 | [options]
12 | all=true
13 |
14 | [strict]
15 |
--------------------------------------------------------------------------------
/public/back-end/events-handlers/backup/types.js:
--------------------------------------------------------------------------------
1 | const backupEventTypes = {
2 | IMPORT_DATA: 'IMPORT_DATA',
3 | EXPORT_DATA: 'EXPORT_DATA',
4 | };
5 |
6 | module.exports = backupEventTypes;
7 |
--------------------------------------------------------------------------------
/public/back-end/events-handlers/brand/types.js:
--------------------------------------------------------------------------------
1 | const brandEventTypes = {
2 | CREATE_BRANDS: 'CREATE_BRANDS',
3 | READ_BRANDS: 'READ_BRANDS',
4 | };
5 |
6 | module.exports = brandEventTypes;
7 |
--------------------------------------------------------------------------------
/src/store/sagas/event-handlers-types/backup.js:
--------------------------------------------------------------------------------
1 | const backupEventTypes = {
2 | IMPORT_DATA: 'IMPORT_DATA',
3 | EXPORT_DATA: 'EXPORT_DATA',
4 | };
5 |
6 | module.exports = backupEventTypes;
7 |
--------------------------------------------------------------------------------
/src/store/sagas/event-handlers-types/brand.js:
--------------------------------------------------------------------------------
1 | const brandEventTypes = {
2 | CREATE_BRANDS: 'CREATE_BRANDS',
3 | READ_BRANDS: 'READ_BRANDS',
4 | };
5 |
6 | module.exports = brandEventTypes;
7 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 2
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 |
5 | import 'typeface-roboto';
6 |
7 | ReactDOM.render(, document.getElementById('root'));
8 |
--------------------------------------------------------------------------------
/public/back-end/config/database.js:
--------------------------------------------------------------------------------
1 | const database = {
2 | username: 'app',
3 | password: 'app',
4 | database: 'app',
5 | host: '127.0.0.1',
6 | dialect: 'mysql',
7 | };
8 |
9 | module.exports = database;
10 |
--------------------------------------------------------------------------------
/src/screens/user/config/tabConfig.js:
--------------------------------------------------------------------------------
1 | const tabConfig = [{
2 | columnTitle: 'Name',
3 | dataField: 'name',
4 | }, {
5 | columnTitle: 'Username',
6 | dataField: 'username',
7 | }];
8 |
9 | export default tabConfig;
10 |
--------------------------------------------------------------------------------
/src/screens/provider/config/tabConfig.js:
--------------------------------------------------------------------------------
1 | const tabConfig = [{
2 | columnTitle: 'Name',
3 | dataField: 'name',
4 | }, {
5 | columnTitle: 'Address',
6 | dataField: 'addressText',
7 | }];
8 |
9 | export default tabConfig;
10 |
--------------------------------------------------------------------------------
/src/store/ducks/social.js:
--------------------------------------------------------------------------------
1 | export const Types = {
2 | OPEN_URL: 'social/OPEN_URL',
3 | };
4 |
5 | const Creators = {
6 | openURL: url => ({
7 | type: Types.OPEN_URL,
8 | payload: { url },
9 | }),
10 | };
11 |
12 | export default Creators;
13 |
--------------------------------------------------------------------------------
/src/store/sagas/social.js:
--------------------------------------------------------------------------------
1 |
2 | import { OPEN_URL } from './entitiesTypes';
3 |
4 | const { ipcRenderer } = window.require('electron');
5 |
6 | export const openURL = ({ payload }) => {
7 | const { url } = payload;
8 |
9 | ipcRenderer.send(OPEN_URL, url);
10 | };
11 |
--------------------------------------------------------------------------------
/public/back-end/events-handlers/cashier/types.js:
--------------------------------------------------------------------------------
1 | const cashierEventTypes = {
2 | IMPORT_CASHIERS: 'IMPORT_CASHIERS',
3 | CREATE_CASHIER: 'CREATE_CASHIER',
4 | READ_CASHIERS: 'READ_CASHIERS',
5 | UPDATE_CASHIER: 'UPDATE_CASHIER',
6 | };
7 |
8 | module.exports = cashierEventTypes;
9 |
--------------------------------------------------------------------------------
/src/store/sagas/event-handlers-types/cashier.js:
--------------------------------------------------------------------------------
1 | const cashierEventTypes = {
2 | IMPORT_CASHIERS: 'IMPORT_CASHIERS',
3 | CREATE_CASHIER: 'CREATE_CASHIER',
4 | READ_CASHIERS: 'READ_CASHIERS',
5 | UPDATE_CASHIER: 'UPDATE_CASHIER',
6 | };
7 |
8 | module.exports = cashierEventTypes;
9 |
--------------------------------------------------------------------------------
/src/screens/customer/config/tabConfig.js:
--------------------------------------------------------------------------------
1 | const tabConfig = [{
2 | columnTitle: 'Name',
3 | dataField: 'name',
4 | }, {
5 | columnTitle: 'CPF',
6 | dataField: 'cpfText',
7 | }, {
8 | columnTitle: 'RG',
9 | dataField: 'rgText',
10 | }];
11 |
12 | export default tabConfig;
13 |
--------------------------------------------------------------------------------
/public/back-end/events-handlers/user/types.js:
--------------------------------------------------------------------------------
1 | const userEventTypes = {
2 | IMPORT_USERS: 'IMPORT_USERS',
3 | CREATE_USER: 'CREATE_USER',
4 | READ_USERS: 'READ_USERS',
5 | UPDATE_USER: 'UPDATE_USER',
6 | DELETE_USER: 'DELETE_USER',
7 | };
8 |
9 | module.exports = userEventTypes;
10 |
--------------------------------------------------------------------------------
/src/store/sagas/event-handlers-types/user.js:
--------------------------------------------------------------------------------
1 | const userEventTypes = {
2 | IMPORT_USERS: 'IMPORT_USERS',
3 | CREATE_USER: 'CREATE_USER',
4 | READ_USERS: 'READ_USERS',
5 | UPDATE_USER: 'UPDATE_USER',
6 | DELETE_USER: 'DELETE_USER',
7 | };
8 |
9 | module.exports = userEventTypes;
10 |
--------------------------------------------------------------------------------
/public/back-end/events-handlers/sale/types.js:
--------------------------------------------------------------------------------
1 | const saleEventTypes = {
2 | IMPORT_SALES: 'IMPORT_SALES',
3 | READ_SALE_BY_ID: 'READ_SALE_BY_ID',
4 | CREATE_SALE: 'CREATE_SALE',
5 | UPDATE_SALE: 'UPDATE_SALE',
6 | READ_SALES: 'READ_SALES',
7 | };
8 |
9 | module.exports = saleEventTypes;
10 |
--------------------------------------------------------------------------------
/src/store/sagas/event-handlers-types/sale.js:
--------------------------------------------------------------------------------
1 | const saleEventTypes = {
2 | IMPORT_SALES: 'IMPORT_SALES',
3 | READ_SALE_BY_ID: 'READ_SALE_BY_ID',
4 | CREATE_SALE: 'CREATE_SALE',
5 | UPDATE_SALE: 'UPDATE_SALE',
6 | READ_SALES: 'READ_SALES',
7 | };
8 |
9 | module.exports = saleEventTypes;
10 |
--------------------------------------------------------------------------------
/public/back-end/events-handlers/budget/types.js:
--------------------------------------------------------------------------------
1 | const budgetEventTypes = {
2 | IMPORT_BUDGET: 'IMPORT_BUDGET',
3 | CREATE_BUDGET: 'CREATE_BUDGET',
4 | READ_BUDGETS: 'READ_BUDGETS',
5 | UPDATE_BUDGET: 'UPDATE_BUDGET',
6 | DELETE_BUDGET: 'DELETE_BUDGET',
7 | };
8 |
9 | module.exports = budgetEventTypes;
10 |
--------------------------------------------------------------------------------
/src/store/sagas/event-handlers-types/budget.js:
--------------------------------------------------------------------------------
1 | const budgetEventTypes = {
2 | IMPORT_BUDGET: 'IMPORT_BUDGET',
3 | CREATE_BUDGET: 'CREATE_BUDGET',
4 | READ_BUDGETS: 'READ_BUDGETS',
5 | UPDATE_BUDGET: 'UPDATE_BUDGET',
6 | DELETE_BUDGET: 'DELETE_BUDGET',
7 | };
8 |
9 | module.exports = budgetEventTypes;
10 |
--------------------------------------------------------------------------------
/public/back-end/events-handlers/product/types.js:
--------------------------------------------------------------------------------
1 | const productEventTypes = {
2 | IMPORT_PRODUCTS: 'IMPORT_PRODUCTS',
3 | CREATE_PRODUCT: 'CREATE_PRODUCT',
4 | READ_PRODUCTS: 'READ_PRODUCTS',
5 | UPDATE_PRODUCT: 'UPDATE_PRODUCT',
6 | DELETE_PRODUCT: 'DELETE_PRODUCT',
7 | };
8 |
9 | module.exports = productEventTypes;
10 |
--------------------------------------------------------------------------------
/src/screens/stock/config/tabConfig.js:
--------------------------------------------------------------------------------
1 | const tabConfig = [{
2 | columnTitle: 'Product',
3 | dataField: 'description',
4 | }, {
5 | columnTitle: 'Current Quantity',
6 | dataField: 'stockQuantity',
7 | }, {
8 | columnTitle: 'Min Quantity',
9 | dataField: 'minStockQuantity',
10 | }];
11 |
12 | export default tabConfig;
13 |
--------------------------------------------------------------------------------
/src/store/sagas/event-handlers-types/product.js:
--------------------------------------------------------------------------------
1 | const productEventTypes = {
2 | IMPORT_PRODUCTS: 'IMPORT_PRODUCTS',
3 | CREATE_PRODUCT: 'CREATE_PRODUCT',
4 | READ_PRODUCTS: 'READ_PRODUCTS',
5 | UPDATE_PRODUCT: 'UPDATE_PRODUCT',
6 | DELETE_PRODUCT: 'DELETE_PRODUCT',
7 | };
8 |
9 | module.exports = productEventTypes;
10 |
--------------------------------------------------------------------------------
/src/screens/provider/config/filterConfig.js:
--------------------------------------------------------------------------------
1 | import { FILTER_TYPES } from '../../../utils/filter';
2 |
3 | const filterConfig = [{
4 | placeholder: 'Enter the Name of the Provider you are looking for',
5 | type: FILTER_TYPES.TEXT,
6 | filterTitle: 'Name',
7 | dataField: 'name',
8 | }];
9 |
10 | export default filterConfig;
11 |
--------------------------------------------------------------------------------
/src/utils/filter/functionalFilter.js:
--------------------------------------------------------------------------------
1 | // @flow
2 |
3 | type Config = {
4 | dataset: Array