Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/components/CardUI.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import { Link } from "react-router-dom";

const CardUI = props => {
return (
Expand All @@ -11,7 +12,9 @@ const CardUI = props => {
<p className ="card-text text-secondary">
{props.text}
</p>
<a href={'/card/' + props.url} className="btn btn-outline-primary">{props.button}</a>
<Link className="btn btn-outline-primary" to={'/card/' + props.url}>
{props.button}
</Link>
</div>
</div>
)
Expand Down
7 changes: 5 additions & 2 deletions src/components/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ function Navigation() {
<Nav className="mr-auto">
<NavDropdown title={<Button>Features</Button>} id="collasible-nav-dropdown">
{
cardDetails.map(oneCard => <NavDropdown.Item href={'/card/' + oneCard.url}>
{oneCard.title}</NavDropdown.Item> )
cardDetails.map(oneCard => <NavDropdown.Item>
<Link to={'/card/' + oneCard.url} style={{ color: 'black', textDecoration: 'none' }}>
{oneCard.title}
</Link>
</NavDropdown.Item> )
}
</NavDropdown>
<Nav.Link href='#ourfooter'>
Expand Down