Skip to content

Commit c69c0e8

Browse files
committed
fix: hook up mobile examples nav links
1 parent 2195004 commit c69c0e8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/Examples/ExamplesList.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
import React from 'react';
22
import { examples } from '../../data/examples/';
3+
import Link from '../Link';
34

45
const ExamplesList: React.FC = () => {
56
return (
67
<div className="flex flex-col gap-6 py-3">
78
{examples.map((example) => (
8-
<a
9+
<Link
910
key={example.name}
10-
href={'#'}
11+
to={example.id ? `/examples/${example.id}` : '#'}
1112
className="px-4 ui-text-label1 text-neutral-1000 dark:text-neutral-300 font-bold hover:text-neutral-1300 dark:hover:text-neutral-000"
1213
>
1314
{example.name}
14-
</a>
15+
</Link>
1516
))}
1617
</div>
1718
);

0 commit comments

Comments
 (0)