Skip to content

Commit ef4b3f0

Browse files
committed
refactor: update CNavLink and CDropdownItem syntax to the latest version of CoreUI
1 parent df49387 commit ef4b3f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/AppHeader.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const AppHeader = () => {
5353
</CHeaderToggler>
5454
<CHeaderNav className="d-none d-md-flex">
5555
<CNavItem>
56-
<CNavLink to="/dashboard" component={NavLink}>
56+
<CNavLink to="/dashboard" as={NavLink}>
5757
Dashboard
5858
</CNavLink>
5959
</CNavItem>
@@ -99,7 +99,7 @@ const AppHeader = () => {
9999
<CDropdownItem
100100
active={colorMode === 'light'}
101101
className="d-flex align-items-center"
102-
component="button"
102+
as="button"
103103
type="button"
104104
onClick={() => setColorMode('light')}
105105
>
@@ -108,7 +108,7 @@ const AppHeader = () => {
108108
<CDropdownItem
109109
active={colorMode === 'dark'}
110110
className="d-flex align-items-center"
111-
component="button"
111+
as="button"
112112
type="button"
113113
onClick={() => setColorMode('dark')}
114114
>
@@ -117,7 +117,7 @@ const AppHeader = () => {
117117
<CDropdownItem
118118
active={colorMode === 'auto'}
119119
className="d-flex align-items-center"
120-
component="button"
120+
as="button"
121121
type="button"
122122
onClick={() => setColorMode('auto')}
123123
>

0 commit comments

Comments
 (0)