Allow admins to view account websites.

This commit is contained in:
Mike Cao committed 2020-09-10 23:55:29 -07:00
1 parent cb14b8bbda
commit 5a22be5efa
19 files changed
+57 -35

No files matched your search

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