mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
Refactor: removed default exports.
This commit is contained in:
parent
cd944e14ce
commit
f83a12d6cd
343 changed files with 555 additions and 1046 deletions
|
|
@ -90,5 +90,3 @@ export function ShareUrl({ hostUrl, onSave }: { hostUrl?: string; onSave?: () =>
|
|||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default ShareUrl;
|
||||
|
|
|
|||
|
|
@ -25,5 +25,3 @@ export function TrackingCode({ websiteId, hostUrl }: { websiteId: string; hostUr
|
|||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default TrackingCode;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { Button, Modal, ModalTrigger, ActionForm } from 'react-basics';
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { useLogin, useMessages, useModified, useTeams, useTeamUrl } from '@/components/hooks';
|
||||
import WebsiteDeleteForm from './WebsiteDeleteForm';
|
||||
import WebsiteResetForm from './WebsiteResetForm';
|
||||
import WebsiteTransferForm from './WebsiteTransferForm';
|
||||
import { WebsiteDeleteForm } from './WebsiteDeleteForm';
|
||||
import { WebsiteResetForm } from './WebsiteResetForm';
|
||||
import { WebsiteTransferForm } from './WebsiteTransferForm';
|
||||
import { ROLES } from '@/lib/constants';
|
||||
|
||||
export function WebsiteData({ websiteId, onSave }: { websiteId: string; onSave?: () => void }) {
|
||||
|
|
@ -86,5 +86,3 @@ export function WebsiteData({ websiteId, onSave }: { websiteId: string; onSave?:
|
|||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default WebsiteData;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useApi, useMessages } from '@/components/hooks';
|
||||
import TypeConfirmationForm from '@/components/common/TypeConfirmationForm';
|
||||
import { TypeConfirmationForm } from '@/components/common/TypeConfirmationForm';
|
||||
|
||||
const CONFIRM_VALUE = 'DELETE';
|
||||
|
||||
|
|
@ -39,5 +39,3 @@ export function WebsiteDeleteForm({
|
|||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default WebsiteDeleteForm;
|
||||
|
|
|
|||
|
|
@ -61,5 +61,3 @@ export function WebsiteEditForm({ websiteId, onSave }: { websiteId: string; onSa
|
|||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
export default WebsiteEditForm;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useApi, useMessages } from '@/components/hooks';
|
||||
import TypeConfirmationForm from '@/components/common/TypeConfirmationForm';
|
||||
import { TypeConfirmationForm } from '@/components/common/TypeConfirmationForm';
|
||||
|
||||
const CONFIRM_VALUE = 'RESET';
|
||||
|
||||
|
|
@ -38,5 +38,3 @@ export function WebsiteResetForm({
|
|||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export default WebsiteResetForm;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import { WebsiteContext } from '@/app/(main)/websites/[websiteId]/WebsiteProvider';
|
||||
import Breadcrumb from '@/components/common/Breadcrumb';
|
||||
import { Breadcrumb } from '@/components/common/Breadcrumb';
|
||||
import { useMessages } from '@/components/hooks';
|
||||
import Icons from '@/components/icons';
|
||||
import PageHeader from '@/components/layout/PageHeader';
|
||||
import { Icons } from '@/components/icons';
|
||||
import { PageHeader } from '@/components/layout/PageHeader';
|
||||
import Link from 'next/link';
|
||||
import { Key, useContext, useState } from 'react';
|
||||
import { Button, Icon, Item, Tabs, Text, useToasts } from 'react-basics';
|
||||
import ShareUrl from './ShareUrl';
|
||||
import TrackingCode from './TrackingCode';
|
||||
import WebsiteData from './WebsiteData';
|
||||
import WebsiteEditForm from './WebsiteEditForm';
|
||||
import { ShareUrl } from './ShareUrl';
|
||||
import { TrackingCode } from './TrackingCode';
|
||||
import { WebsiteData } from './WebsiteData';
|
||||
import { WebsiteEditForm } from './WebsiteEditForm';
|
||||
|
||||
export function WebsiteSettings({
|
||||
websiteId,
|
||||
|
|
@ -66,5 +66,3 @@ export function WebsiteSettings({
|
|||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export default WebsiteSettings;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
'use client';
|
||||
import WebsiteProvider from '@/app/(main)/websites/[websiteId]/WebsiteProvider';
|
||||
import WebsiteSettings from './WebsiteSettings';
|
||||
import { WebsiteProvider } from '@/app/(main)/websites/[websiteId]/WebsiteProvider';
|
||||
import { WebsiteSettings } from './WebsiteSettings';
|
||||
|
||||
export default function WebsiteSettingsPage({ websiteId }: { websiteId: string }) {
|
||||
export function WebsiteSettingsPage({ websiteId }: { websiteId: string }) {
|
||||
return (
|
||||
<WebsiteProvider websiteId={websiteId}>
|
||||
<WebsiteSettings websiteId={websiteId} />
|
||||
|
|
|
|||
|
|
@ -96,5 +96,3 @@ export function WebsiteTransferForm({
|
|||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
export default WebsiteTransferForm;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import WebsiteSettingsPage from './WebsiteSettingsPage';
|
||||
import { WebsiteSettingsPage } from './WebsiteSettingsPage';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export default async function ({ params }: { params: { websiteId: string } }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue