mirror of
https://github.com/umami-software/umami.git
synced 2026-02-22 21:45:36 +01:00
Renamed (app) folder to (main).
This commit is contained in:
parent
5c15778c9b
commit
c990459238
167 changed files with 48 additions and 114 deletions
15
src/app/(main)/settings/websites/[id]/page.js
Normal file
15
src/app/(main)/settings/websites/[id]/page.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import WebsiteSettings from '../WebsiteSettings';
|
||||
|
||||
async function getDisabled() {
|
||||
return !!process.env.CLOUD_MODE;
|
||||
}
|
||||
|
||||
export default async function WebsiteSettingsPage({ params }) {
|
||||
const disabled = await getDisabled();
|
||||
|
||||
if (!params.id || disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <WebsiteSettings websiteId={params.id} />;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue