mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
Allow admins to view account websites.
This commit is contained in:
parent
cb14b8bbda
commit
5a22be5efa
19 changed files with 57 additions and 35 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue