Skip to content

Commit 3e5eca4

Browse files
committed
Bootstrap sales submodules
1 parent 496ffc5 commit 3e5eca4

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

src/Demo/Demo.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import React from 'react'
22
import { Switch, Route, RouteComponentProps } from 'react-router-dom'
33

4+
import DashboardLayout from '_layouts/DashboardLayout'
5+
46
import Features from './Features'
57
import Docs from './Docs'
68
import Supporters from './Supporters'
@@ -10,12 +12,14 @@ export interface DemoProps extends RouteComponentProps {}
1012

1113
const Demo: React.FC<DemoProps> = ({ match }) => {
1214
return (
13-
<Switch>
14-
<Route path={`${match.url}/features`} component={Features} />
15-
<Route path={`${match.url}/docs`} component={Docs} />
16-
<Route path={`${match.url}/supporters`} component={Supporters} />
17-
<Route path={`${match.url}/discuss`} component={Discuss} />
18-
</Switch>
15+
<DashboardLayout>
16+
<Switch>
17+
<Route path={`${match.url}/features`} component={Features} />
18+
<Route path={`${match.url}/docs`} component={Docs} />
19+
<Route path={`${match.url}/supporters`} component={Supporters} />
20+
<Route path={`${match.url}/discuss`} component={Discuss} />
21+
</Switch>
22+
</DashboardLayout>
1923
)
2024
}
2125

src/Sales/Customers/CustomersEditor/.gitkeep

Whitespace-only changes.

src/Sales/Customers/CustomersList/.gitkeep

Whitespace-only changes.

src/Sales/Customers/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './Customers'

src/Sales/Orders/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './Orders'

src/Sales/Sales.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Switch, Route, RouteComponentProps } from 'react-router-dom'
33

44
import DashboardLayout from '_layouts/DashboardLayout'
55
import Overview from './Overview'
6+
import Orders from './Orders'
7+
import Customers from './Customers'
68

79
export interface SalesProps extends RouteComponentProps {}
810

@@ -11,6 +13,8 @@ const Sales = ({ match }: SalesProps) => {
1113
<DashboardLayout>
1214
<Switch>
1315
<Route path={`${match.url}/dashboard`} component={Overview} />
16+
<Route path={`${match.url}/orders`} component={Orders} />
17+
<Route path={`${match.url}/customers`} component={Customers} />
1418
</Switch>
1519
</DashboardLayout>
1620
)

0 commit comments

Comments
 (0)