Skip to content

Commit 379cf4b

Browse files
committed
refactor: update layout
1 parent c721407 commit 379cf4b

File tree

7 files changed

+5
-27
lines changed

7 files changed

+5
-27
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/AppHeader.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,12 @@ import {
1313
} from '@coreui/react'
1414
import CIcon from '@coreui/icons-react'
1515

16-
import {
17-
AppBreadcrumb,
18-
AppHeaderDropdown,
19-
AppHeaderDropdownMssg,
20-
AppHeaderDropdownNotif,
21-
AppHeaderDropdownTasks,
22-
} from '../containers/index'
16+
import { AppBreadcrumb, AppHeaderDropdown } from '../containers/index'
2317

2418
const AppHeader = () => {
2519
const dispatch = useDispatch()
2620
const sidebarShow = useSelector((state) => state.sidebarShow)
2721

28-
// const toggleSidebar = () => {
29-
// const val = [true, 'responsive'].includes(sidebarShow) ? false : 'responsive'
30-
// dispatch({ type: 'set', sidebarShow: val })
31-
// }
32-
33-
// const toggleSidebarMobile = () => {
34-
// const val = [false, 'responsive'].includes(sidebarShow) ? true : 'responsive'
35-
// dispatch({ type: 'set', sidebarShow: val })
36-
// }
37-
3822
return (
3923
<CHeader position="sticky" className="mb-4">
4024
<CContainer fluid>

src/containers/TheContent.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Suspense } from 'react'
22
import { Redirect, Route, Switch } from 'react-router-dom'
3-
import { CContainer, CFade } from '@coreui/react'
3+
import { CContainer } from '@coreui/react'
44

55
// routes config
66
import routes from '../routes'
@@ -26,9 +26,9 @@ const TheContent = () => {
2626
exact={route.exact}
2727
name={route.name}
2828
render={(props) => (
29-
<CFade>
29+
<>
3030
<route.component {...props} />
31-
</CFade>
31+
</>
3232
)}
3333
/>
3434
)

src/containers/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import TheContent from './TheContent'
33
import AppFooter from '../components/AppFooter'
44
import AppHeader from '../components/AppHeader'
55
import AppHeaderDropdown from '../components/header/AppHeaderDropdown'
6-
import AppHeaderDropdownMssg from '../components/header/AppHeaderDropdownMssg'
7-
import AppHeaderDropdownNotif from '../components/header/AppHeaderDropdownNotif'
8-
import AppHeaderDropdownTasks from '../components/header/AppHeaderDropdownTasks'
96
import DefaultLayout from '../layout/DefaultLayout'
107
import AppSidebar from '../components/AppSidebar'
118

@@ -15,9 +12,6 @@ export {
1512
AppFooter,
1613
AppHeader,
1714
AppHeaderDropdown,
18-
AppHeaderDropdownMssg,
19-
AppHeaderDropdownNotif,
20-
AppHeaderDropdownTasks,
2115
DefaultLayout,
2216
AppSidebar,
2317
}

src/reusable/DocsLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const DocsLink = (props) => {
1515
target="_blank"
1616
className="card-header-action"
1717
>
18-
<small className="text-muted">{text || 'docs'}</small>
18+
<small className="text-medium-emphasis">{text || 'docs'}</small>
1919
</CLink>
2020
</div>
2121
)

0 commit comments

Comments
 (0)