Skip to content

Commit 1f6e8e4

Browse files
committed
Fix Navigation as per
coreui#414
1 parent e506dd2 commit 1f6e8e4

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

src/_nav.js

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const _nav = [
1919
{
2020
component: CNavItem,
2121
name: 'Dashboard',
22-
to: '/dashboard',
22+
href: '#/dashboard',
2323
icon: <CIcon icon={cilSpeedometer} customClassName="nav-icon" />,
2424
badge: {
2525
color: 'info',
@@ -33,13 +33,13 @@ const _nav = [
3333
{
3434
component: CNavItem,
3535
name: 'Colors',
36-
to: '/theme/colors',
36+
href: '#/theme/colors',
3737
icon: <CIcon icon={cilDrop} customClassName="nav-icon" />,
3838
},
3939
{
4040
component: CNavItem,
4141
name: 'Typography',
42-
to: '/theme/typography',
42+
href: '#/theme/typography',
4343
icon: <CIcon icon={cilPencil} customClassName="nav-icon" />,
4444
},
4545
{
@@ -49,33 +49,33 @@ const _nav = [
4949
{
5050
component: CNavGroup,
5151
name: 'Base',
52-
to: '/base',
52+
href: '#/base',
5353
icon: <CIcon icon={cilPuzzle} customClassName="nav-icon" />,
5454
items: [
5555
{
5656
component: CNavItem,
5757
name: 'Accordion',
58-
to: '/base/accordion',
58+
href: '#/base/accordion',
5959
},
6060
{
6161
component: CNavItem,
6262
name: 'Breadcrumb',
63-
to: '/base/breadcrumbs',
63+
href: '#/base/breadcrumbs',
6464
},
6565
{
6666
component: CNavItem,
6767
name: 'Cards',
68-
to: '/base/cards',
68+
href: '#/base/cards',
6969
},
7070
{
7171
component: CNavItem,
7272
name: 'Carousel',
73-
to: '/base/carousels',
73+
href: '#/base/carousels',
7474
},
7575
{
7676
component: CNavItem,
7777
name: 'Collapse',
78-
to: '/base/collapses',
78+
href: '#/base/collapses',
7979
},
8080
{
8181
component: CNavItem,
@@ -85,65 +85,65 @@ const _nav = [
8585
{
8686
component: CNavItem,
8787
name: 'Navs & Tabs',
88-
to: '/base/navs',
88+
href: '#/base/navs',
8989
},
9090
{
9191
component: CNavItem,
9292
name: 'Pagination',
93-
to: '/base/paginations',
93+
href: '#/base/paginations',
9494
},
9595
{
9696
component: CNavItem,
9797
name: 'Placeholders',
98-
to: '/base/placeholders',
98+
href: '#/base/placeholders',
9999
},
100100
{
101101
component: CNavItem,
102102
name: 'Popovers',
103-
to: '/base/popovers',
103+
href: '#/base/popovers',
104104
},
105105
{
106106
component: CNavItem,
107107
name: 'Progress',
108-
to: '/base/progress',
108+
href: '#/base/progress',
109109
},
110110
{
111111
component: CNavItem,
112112
name: 'Spinners',
113-
to: '/base/spinners',
113+
href: '#/base/spinners',
114114
},
115115
{
116116
component: CNavItem,
117117
name: 'Tables',
118-
to: '/base/tables',
118+
href: '#/base/tables',
119119
},
120120
{
121121
component: CNavItem,
122122
name: 'Tooltips',
123-
to: '/base/tooltips',
123+
href: '#/base/tooltips',
124124
},
125125
],
126126
},
127127
{
128128
component: CNavGroup,
129129
name: 'Buttons',
130-
to: '/buttons',
130+
href: '#/buttons',
131131
icon: <CIcon icon={cilCursor} customClassName="nav-icon" />,
132132
items: [
133133
{
134134
component: CNavItem,
135135
name: 'Buttons',
136-
to: '/buttons/buttons',
136+
href: '#/buttons/buttons',
137137
},
138138
{
139139
component: CNavItem,
140140
name: 'Buttons groups',
141-
to: '/buttons/button-groups',
141+
href: '#/buttons/button-groups',
142142
},
143143
{
144144
component: CNavItem,
145145
name: 'Dropdowns',
146-
to: '/buttons/dropdowns',
146+
href: '#/buttons/dropdowns',
147147
},
148148
],
149149
},
@@ -155,49 +155,49 @@ const _nav = [
155155
{
156156
component: CNavItem,
157157
name: 'Form Control',
158-
to: '/forms/form-control',
158+
href: '#/forms/form-control',
159159
},
160160
{
161161
component: CNavItem,
162162
name: 'Select',
163-
to: '/forms/select',
163+
href: '#/forms/select',
164164
},
165165
{
166166
component: CNavItem,
167167
name: 'Checks & Radios',
168-
to: '/forms/checks-radios',
168+
href: '#/forms/checks-radios',
169169
},
170170
{
171171
component: CNavItem,
172172
name: 'Range',
173-
to: '/forms/range',
173+
href: '#/forms/range',
174174
},
175175
{
176176
component: CNavItem,
177177
name: 'Input Group',
178-
to: '/forms/input-group',
178+
href: '#/forms/input-group',
179179
},
180180
{
181181
component: CNavItem,
182182
name: 'Floating Labels',
183-
to: '/forms/floating-labels',
183+
href: '#/forms/floating-labels',
184184
},
185185
{
186186
component: CNavItem,
187187
name: 'Layout',
188-
to: '/forms/layout',
188+
href: '#/forms/layout',
189189
},
190190
{
191191
component: CNavItem,
192192
name: 'Validation',
193-
to: '/forms/validation',
193+
href: '#/forms/validation',
194194
},
195195
],
196196
},
197197
{
198198
component: CNavItem,
199199
name: 'Charts',
200-
to: '/charts',
200+
href: '#/charts',
201201
icon: <CIcon icon={cilChartPie} customClassName="nav-icon" />,
202202
},
203203
{
@@ -208,7 +208,7 @@ const _nav = [
208208
{
209209
component: CNavItem,
210210
name: 'CoreUI Free',
211-
to: '/icons/coreui-icons',
211+
href: '#/icons/coreui-icons',
212212
badge: {
213213
color: 'success',
214214
text: 'NEW',
@@ -217,12 +217,12 @@ const _nav = [
217217
{
218218
component: CNavItem,
219219
name: 'CoreUI Flags',
220-
to: '/icons/flags',
220+
href: '#/icons/flags',
221221
},
222222
{
223223
component: CNavItem,
224224
name: 'CoreUI Brands',
225-
to: '/icons/brands',
225+
href: '#/icons/brands',
226226
},
227227
],
228228
},
@@ -234,29 +234,29 @@ const _nav = [
234234
{
235235
component: CNavItem,
236236
name: 'Alerts',
237-
to: '/notifications/alerts',
237+
href: '#/notifications/alerts',
238238
},
239239
{
240240
component: CNavItem,
241241
name: 'Badges',
242-
to: '/notifications/badges',
242+
href: '#/notifications/badges',
243243
},
244244
{
245245
component: CNavItem,
246246
name: 'Modal',
247-
to: '/notifications/modals',
247+
href: '#/notifications/modals',
248248
},
249249
{
250250
component: CNavItem,
251251
name: 'Toasts',
252-
to: '/notifications/toasts',
252+
href: '#/notifications/toasts',
253253
},
254254
],
255255
},
256256
{
257257
component: CNavItem,
258258
name: 'Widgets',
259-
to: '/widgets',
259+
href: '#/widgets',
260260
icon: <CIcon icon={cilCalculator} customClassName="nav-icon" />,
261261
badge: {
262262
color: 'info',
@@ -275,22 +275,22 @@ const _nav = [
275275
{
276276
component: CNavItem,
277277
name: 'Login',
278-
to: '/login',
278+
href: '#/login',
279279
},
280280
{
281281
component: CNavItem,
282282
name: 'Register',
283-
to: '/register',
283+
href: '#/register',
284284
},
285285
{
286286
component: CNavItem,
287287
name: 'Error 404',
288-
to: '/404',
288+
href: '#/404',
289289
},
290290
{
291291
component: CNavItem,
292292
name: 'Error 500',
293-
to: '/500',
293+
href: '#/500',
294294
},
295295
],
296296
},

0 commit comments

Comments
 (0)