Skip to content

Commit

Permalink
Updated link
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan-Roberts123 committed Apr 26, 2024
1 parent a326abf commit c76416f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/CancelBtn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const CancelBtn = () => (
type="button"
className="bg-gray-400 hover:bg-gray-600 text-black font-bold py-2 px-4 rounded"
>
<Link href="/">
<Link to="/">
<div>
Cancel
<span className="inline-block" style={{ height: '0.85em' }}>
Expand Down
2 changes: 1 addition & 1 deletion components/Client.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Client = ({ id, name, email, phone, address, company, notes }) => {
name={`edit ${name}`}
className="bg-orange-500 hover:bg-orange-700 text-white font-bold py-2 px-4 rounded"
>
<Link href="/edit/[id]" as={`/edit/${id}`}>
<Link to="/edit/[id]" as={`/edit/${id}`}>
<FaRegEdit />
</Link>
</button>
Expand Down
4 changes: 2 additions & 2 deletions components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ const Header = () => (
<nav className="flex justify-between">
{useRouter().pathname !== '/' && (
<li className="self-center text-2xl hover:text-gray-500">
<Link href="/">Clients</Link>
<Link to="/">Clients</Link>
</li>
)}
{useRouter().pathname !== '/add-client' && (
<li className="self-center text-2xl hover:text-gray-500 ml-5">
<Link href="/add-client">Add Client</Link>
<Link to="/add-client">Add Client</Link>
</li>
)}
</nav>
Expand Down
2 changes: 1 addition & 1 deletion pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Home = ({ clients }) => (
</tbody>
</table>
<div className="text-center p-5">
<Link href="/add-client">
<Link to="/add-client">
<button className="bg-green-700 hover:bg-green-900 text-white font-bold py-2 px-4 rounded text-2xl">
<div>
Add{' '}
Expand Down

0 comments on commit c76416f

Please sign in to comment.