Fixed 'use client' usage.

This commit is contained in:
Mike Cao 2024-02-05 23:59:33 -08:00
parent be5592446a
commit f7151a880e
208 changed files with 323 additions and 385 deletions

View file

@ -0,0 +1,6 @@
'use client';
import UserSettings from './UserSettings';
export default function ({ userId }: { userId: string }) {
return <UserSettings userId={userId} />;
}

View file

@ -1,4 +1,3 @@
'use client';
import { Key, useState } from 'react';
import { Item, Loading, Tabs } from 'react-basics';
import Icons from 'components/icons';

View file

@ -1,4 +1,3 @@
'use client';
import WebsitesTable from 'app/(main)/settings/websites/WebsitesTable';
import DataTable from 'components/common/DataTable';
import { useWebsites } from 'components/hooks';

View file

@ -1,5 +1,10 @@
import UserSettings from './UserSettings';
import UserPage from './UserPage';
import { Metadata } from 'next';
export default function ({ params: { userId } }) {
return <UserSettings userId={userId} />;
return <UserPage userId={userId} />;
}
export const metadata: Metadata = {
title: 'User Settings - Umami',
};