Skip to content

Commit

Permalink
added link instead of href
Browse files Browse the repository at this point in the history
  • Loading branch information
tlodge committed Apr 8, 2022
1 parent ccc85fc commit a0eba1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styles from '../styles/Index.module.scss';
import {useState} from 'react';

import Link from 'next/link'
const pages = [
"Welcome to the SHAPE OF TRUST project",
"We are going to show you a story about taking a taxi",
Expand All @@ -19,7 +19,7 @@ export default function Gallery({answers:_answers}) {

<div className={styles.heading}>{pages[page]}</div>
{page < pages.length - 1 && <div onClick={_setPage} className={styles.button}>Next</div>}
{page == pages.length - 1 && <a href="/shapes" className={styles.button}>GO</a>}
{page == pages.length - 1 && <Link href="/shapes" className={styles.button}>GO</Link>}

</div>
</div>
Expand Down

1 comment on commit a0eba1e

@vercel
Copy link

@vercel vercel bot commented on a0eba1e Apr 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

trustme – ./

trustme-tlodge.vercel.app
trustme-liart.vercel.app
trustme-git-main-tlodge.vercel.app

Please sign in to comment.