convert to named exports
This commit is contained in:
@@ -6,4 +6,4 @@ const Footer = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Footer;
|
export { Footer };
|
||||||
|
|||||||
@@ -1,20 +1,15 @@
|
|||||||
import styles from "./Navigation.module.scss";
|
import styles from "./Navigation.module.scss";
|
||||||
import GractwoLogo from "../logo";
|
import { GractwoLogo } from "../Logo";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
import config from "../../data/config.json";
|
import config from "../../data/config.json";
|
||||||
|
|
||||||
const PageNavigation = () => {
|
const Navigation = () => {
|
||||||
let username: string = "";
|
let username: string = "";
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className={styles.nav}>
|
<div className={styles.nav}>
|
||||||
<GractwoLogo className={`${styles.logo} ${styles.desktop}`} />
|
<GractwoLogo className={`${styles.logo} ${styles.desktop}`} />
|
||||||
{/* <GractwoLogo
|
|
||||||
width={48}
|
|
||||||
height={48}
|
|
||||||
className={`${styles.logo} ${styles.mobile}`}
|
|
||||||
/> */}
|
|
||||||
{config.navigation.map((navlink) => {
|
{config.navigation.map((navlink) => {
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
@@ -45,4 +40,4 @@ const PageNavigation = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default PageNavigation;
|
export { Navigation };
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ type seoprops = {
|
|||||||
description?: string;
|
description?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
const ComponentSEO = ({ title, noatsign, description }: seoprops) => {
|
const SEO = ({ title, noatsign, description }: seoprops) => {
|
||||||
const defaultDescription = "Witryna internetowa Gractwa.";
|
const defaultDescription = "Witryna internetowa Gractwa.";
|
||||||
return (
|
return (
|
||||||
<Head>
|
<Head>
|
||||||
@@ -19,4 +19,4 @@ const ComponentSEO = ({ title, noatsign, description }: seoprops) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default ComponentSEO;
|
export { SEO };
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import SEO from "../components/SEO";
|
import { SEO } from "../components/SEO";
|
||||||
|
|
||||||
const PageError404 = () => {
|
const PageError404 = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import "../styles/globals.scss";
|
import "../styles/globals.scss";
|
||||||
import type { AppProps } from "next/app";
|
import type { AppProps } from "next/app";
|
||||||
import Navigation from "../components/Navigation/Navigation";
|
import { Navigation } from "../components/Navigation/Navigation";
|
||||||
import Footer from "../components/Footer/Footer";
|
import { Footer } from "../components/Footer/Footer";
|
||||||
import SEO from "../components/SEO";
|
import { SEO } from "../components/SEO";
|
||||||
|
|
||||||
export default function App({ Component, pageProps }: AppProps) {
|
export default function App({ Component, pageProps }: AppProps) {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import SEO from "../components/SEO";
|
import { SEO } from "../components/SEO";
|
||||||
|
|
||||||
const PageCytaty = () => {
|
const PageCytaty = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import styles from "../styles/Index.module.scss";
|
import styles from "../styles/Index.module.scss";
|
||||||
|
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import SEO from "../components/SEO";
|
import { SEO } from "../components/SEO";
|
||||||
import config from "../data/config.json";
|
import config from "../data/config.json";
|
||||||
|
|
||||||
const PageIndex = () => {
|
const PageIndex = () => {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import SEO from "../components/SEO";
|
import { SEO } from "../components/SEO";
|
||||||
|
|
||||||
const PageInfo = () => {
|
const PageInfo = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import SEO from "../components/SEO";
|
import { SEO } from "../components/SEO";
|
||||||
|
|
||||||
const PageRankingi = () => {
|
const PageRankingi = () => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user