Allow admins to view account websites.

This commit is contained in:
Mike Cao 2020-09-10 23:55:29 -07:00
parent cb14b8bbda
commit 5a22be5efa
19 changed files with 57 additions and 35 deletions

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;