Updated fetch hook API.

This commit is contained in:
Mike Cao committed 2020-10-09 12:39:03 -07:00
commit 69b317386a
21 files changed
+112 -76

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ import Arrow from 'assets/arrow-right.svg';
import styles from './WebsiteList.module.css';
export default function WebsiteList({ userId }) {
const { data } = useFetch('/api/websites', { user_id: userId });
const { data } = useFetch('/api/websites', { params: { user_id: userId } });
if (!data) {
return null;