mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 13:47:15 +01:00
Refactor: removed default exports.
This commit is contained in:
parent
cd944e14ce
commit
f83a12d6cd
343 changed files with 555 additions and 1046 deletions
|
|
@ -10,5 +10,3 @@ export function Footer() {
|
|||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
export default Footer;
|
||||
|
|
|
|||
|
|
@ -28,10 +28,4 @@
|
|||
.header .buttons {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.links {
|
||||
order: 2;
|
||||
margin: 20px 0;
|
||||
min-width: 100%;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
import { ThemeButton } from '@umami/react-zen';
|
||||
import { Icon, Text } from 'react-basics';
|
||||
import Link from 'next/link';
|
||||
import LanguageButton from '@/components/input/LanguageButton';
|
||||
import ThemeButton from '@/components/input/ThemeButton';
|
||||
import SettingsButton from '@/components/input/SettingsButton';
|
||||
import Icons from '@/components/icons';
|
||||
import { LanguageButton } from '@/components/input/LanguageButton';
|
||||
import { SettingsButton } from '@/components/input/SettingsButton';
|
||||
import { Icons } from '@/components/icons';
|
||||
import styles from './Header.module.css';
|
||||
|
||||
export function Header() {
|
||||
|
|
@ -25,5 +25,3 @@ export function Header() {
|
|||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
export default Header;
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
'use client';
|
||||
import WebsiteDetailsPage from '../../(main)/websites/[websiteId]/WebsiteDetailsPage';
|
||||
import { useShareToken } from '@/components/hooks';
|
||||
import Page from '@/components/layout/Page';
|
||||
import Header from './Header';
|
||||
import Footer from './Footer';
|
||||
import { Page } from '@/components/layout/Page';
|
||||
import { Header } from './Header';
|
||||
import { Footer } from './Footer';
|
||||
import styles from './SharePage.module.css';
|
||||
import { WebsiteProvider } from '@/app/(main)/websites/[websiteId]/WebsiteProvider';
|
||||
|
||||
export default function SharePage({ shareId }) {
|
||||
export function SharePage({ shareId }) {
|
||||
const { shareToken, isLoading } = useShareToken(shareId);
|
||||
|
||||
if (isLoading || !shareToken) {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import SharePage from './SharePage';
|
||||
import { SharePage } from './SharePage';
|
||||
|
||||
export default async function ({ params }: { params: { shareId: string } }) {
|
||||
const { shareId } = await params;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue