convert to named exports

This commit is contained in:
2022-12-11 13:11:01 +01:00
parent 78245b8501
commit 922424f669
9 changed files with 14 additions and 19 deletions

View File

@@ -6,4 +6,4 @@ const Footer = () => {
);
};
export default Footer;
export { Footer };

View File

@@ -1,20 +1,15 @@
import styles from "./Navigation.module.scss";
import GractwoLogo from "../logo";
import { GractwoLogo } from "../Logo";
import Link from "next/link";
import config from "../../data/config.json";
const PageNavigation = () => {
const Navigation = () => {
let username: string = "";
return (
<>
<div className={styles.nav}>
<GractwoLogo className={`${styles.logo} ${styles.desktop}`} />
{/* <GractwoLogo
width={48}
height={48}
className={`${styles.logo} ${styles.mobile}`}
/> */}
{config.navigation.map((navlink) => {
return (
<Link
@@ -45,4 +40,4 @@ const PageNavigation = () => {
);
};
export default PageNavigation;
export { Navigation };

View File

@@ -6,7 +6,7 @@ type seoprops = {
description?: string;
};
const ComponentSEO = ({ title, noatsign, description }: seoprops) => {
const SEO = ({ title, noatsign, description }: seoprops) => {
const defaultDescription = "Witryna internetowa Gractwa.";
return (
<Head>
@@ -19,4 +19,4 @@ const ComponentSEO = ({ title, noatsign, description }: seoprops) => {
);
};
export default ComponentSEO;
export { SEO };

View File

@@ -1,4 +1,4 @@
import SEO from "../components/SEO";
import { SEO } from "../components/SEO";
const PageError404 = () => {
return (

View File

@@ -1,8 +1,8 @@
import "../styles/globals.scss";
import type { AppProps } from "next/app";
import Navigation from "../components/Navigation/Navigation";
import Footer from "../components/Footer/Footer";
import SEO from "../components/SEO";
import { Navigation } from "../components/Navigation/Navigation";
import { Footer } from "../components/Footer/Footer";
import { SEO } from "../components/SEO";
export default function App({ Component, pageProps }: AppProps) {
return (

View File

@@ -1,4 +1,4 @@
import SEO from "../components/SEO";
import { SEO } from "../components/SEO";
const PageCytaty = () => {
return (

View File

@@ -1,7 +1,7 @@
import styles from "../styles/Index.module.scss";
import { useEffect, useState } from "react";
import SEO from "../components/SEO";
import { SEO } from "../components/SEO";
import config from "../data/config.json";
const PageIndex = () => {

View File

@@ -1,4 +1,4 @@
import SEO from "../components/SEO";
import { SEO } from "../components/SEO";
const PageInfo = () => {
return (

View File

@@ -1,4 +1,4 @@
import SEO from "../components/SEO";
import { SEO } from "../components/SEO";
const PageRankingi = () => {
return (