Skip to content

Commit 496ffc5

Browse files
committed
Restructure
1 parent 347f591 commit 496ffc5

32 files changed

+20
-19
lines changed
File renamed without changes.

src/Administration/AdminDocs.md renamed to src/Administration/AdministrationDocs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Admin module
1+
# Admininstration module
22

33
Allows to manage all system accounts and users. This module might be suitable for the platform owners/admins, who should be able to manage other accounts data
44

src/Administration/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default } from './Admin'
1+
export { default } from './Administration'

src/AppRouter.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import LinearProgress from '@material-ui/core/LinearProgress'
1111

1212
import config from './_config'
1313
import authService from './_services/authService'
14-
import { useAppState, useAppEffects } from './_state/appState'
14+
import { useAppState, useAppStateMethods } from './_state/appState'
1515

1616
// Import application modules
1717
import Sales from './Sales'
@@ -29,11 +29,11 @@ import Demo from './Demo'
2929

3030
const LoggedInRouter = () => {
3131
const { loading, error } = useAppState()
32-
const effects = useAppEffects()
32+
const appStateMethods = useAppStateMethods()
3333

3434
useEffect(() => {
35-
effects.request()
36-
}, [effects])
35+
appStateMethods.request()
36+
}, [appStateMethods])
3737

3838
if (loading) return <LinearProgress />
3939
if (error) return <p>Error :(</p>

src/Sales/SalesDashboard/SalesDashboard.tsx renamed to src/Sales/Overview/Overview.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import Grid from '@material-ui/core/Grid'
88
import PageContainer from '../../_common/PageContainer'
99
import PageToolbar from '../../_common/PageToolbar'
1010

11-
import { SalesDashboardProvider } from './salesDashboardContext'
11+
import { SalesDashboardProvider } from './overviewContext'
1212

13-
import SalesDashboardActions from './SalesDashboardActions'
13+
import SalesDashboardActions from './OverviewActions'
1414
import OrdersHistory from './OrdersHistory'
1515
import OrdersLatest from './OrdersLatest'
1616

0 commit comments

Comments
 (0)