|
1 | 1 | import * as React from 'react';
|
2 | 2 | import { useTranslate } from '@portal/hooks';
|
| 3 | +import { NavList } from "shared/components/nav-list"; |
3 | 4 |
|
4 | 5 | export const frontmatter = {
|
5 | 6 | seo: {
|
@@ -164,15 +165,7 @@ function UseCasesCard(props: {
|
164 | 165 | <div className="col">
|
165 | 166 | <img className={'use-cases-img img-fluid mb-2 shadow ' + useCase.imgClass} alt={useCase.title} id={useCase.id} />
|
166 | 167 | <h5 className="mt-4">{useCase.title}</h5>
|
167 |
| - <ul className="nav flex-column"> |
168 |
| - {useCase.subItems.map(item => ( |
169 |
| - <li key={item.link} className="nav-item"> |
170 |
| - <a href={item.link} className="nav-link"> |
171 |
| - {item.description} |
172 |
| - </a> |
173 |
| - </li> |
174 |
| - ))} |
175 |
| - </ul> |
| 168 | + <NavList pages={useCase.subItems} /> |
176 | 169 | </div>
|
177 | 170 | );
|
178 | 171 | }
|
@@ -386,15 +379,7 @@ export default function Docs() {
|
386 | 379 | <div className="row card-grid card-grid-2xN">
|
387 | 380 | <div className="col" id="popular-topics">
|
388 | 381 | <h2 className="h4">{translate('Browse By Recommended Pages')}</h2>
|
389 |
| - <ul className="nav flex-column"> |
390 |
| - {recommendedPages.map(page => ( |
391 |
| - <li className="nav-item" key={page.link}> |
392 |
| - <a href={page.link} className="nav-link"> |
393 |
| - {translate(page.description)} |
394 |
| - </a> |
395 |
| - </li> |
396 |
| - ))} |
397 |
| - </ul> |
| 382 | + <NavList pages={recommendedPages} /> |
398 | 383 | </div>
|
399 | 384 | <div className="col">
|
400 | 385 | <div className="card cta-card p-8-sm p-10-until-sm br-8">
|
|
0 commit comments