From 599fa117cdbd44ed53f6d082d20410e68889f60a Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 8 Jun 2022 04:52:41 +0200 Subject: [PATCH] Clean up imports --- components/extensions/FestaMarkdown.tsx | 3 +-- components/tools/ToolBar.tsx | 2 +- pages/404.tsx | 4 +--- pages/events/[slug].tsx | 2 +- pages/index.tsx | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/components/extensions/FestaMarkdown.tsx b/components/extensions/FestaMarkdown.tsx index c15e665..923cd2f 100644 --- a/components/extensions/FestaMarkdown.tsx +++ b/components/extensions/FestaMarkdown.tsx @@ -1,5 +1,4 @@ -import { ReactNode } from "react" -import ReactMarkdown from "react-markdown" +import { default as ReactMarkdown } from "react-markdown" type FestaMarkdownProps = { markdown: string, diff --git a/components/tools/ToolBar.tsx b/components/tools/ToolBar.tsx index 7c1e610..1020a6e 100644 --- a/components/tools/ToolBar.tsx +++ b/components/tools/ToolBar.tsx @@ -1,4 +1,4 @@ -import {default as classNames} from "classnames" +import { default as classNames } from "classnames" import { ReactNode } from "react" type ToolBarProps = { diff --git a/pages/404.tsx b/pages/404.tsx index fc28d03..cbe8509 100644 --- a/pages/404.tsx +++ b/pages/404.tsx @@ -1,10 +1,8 @@ -import { faArrowLeft } from "@fortawesome/free-solid-svg-icons"; import { NextPageContext } from "next"; import { useTranslation } from "next-i18next"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; -import Link from "next/link"; +import { default as Link } from "next/link"; import { ErrorBlock } from "../components/errors/ErrorBlock"; -import { FestaIcon } from "../components/extensions/FestaIcon"; import { Postcard } from "../components/postcard/Postcard"; import { ViewNotice } from "../components/view/ViewNotice"; import errorPostcard from "../public/postcards/markus-spiske-iar-afB0QQw-unsplash-red.jpg" diff --git a/pages/events/[slug].tsx b/pages/events/[slug].tsx index abbbdd2..dcadb45 100644 --- a/pages/events/[slug].tsx +++ b/pages/events/[slug].tsx @@ -2,7 +2,7 @@ import { Event, User } from "@prisma/client"; import { NextPageContext } from "next"; import { useTranslation } from "next-i18next"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; -import Head from "next/head"; +import { default as Head } from "next/head"; import { ChangeEvent, useCallback, useState } from "react"; import { ToolBar } from "../../components/tools/ToolBar"; import { EditableMarkdown } from "../../components/editable/EditableMarkdown"; diff --git a/pages/index.tsx b/pages/index.tsx index b2dc8bf..41f1e1f 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -5,7 +5,7 @@ import { LoginContext } from '../contexts/login' import { useDefinedContext } from '../utils/definedContext' import { ActionLoginTelegram } from '../components/ActionLoginTelegram' import { ActionEventList } from '../components/ActionEventList' -import {default as Head} from 'next/head' +import { default as Head } from 'next/head' import defaultPostcard from "../public/postcards/adi-goldstein-Hli3R6LKibo-unsplash.jpg" import { Postcard } from '../components/postcard/Postcard' import { ViewLanding } from '../components/view/ViewLanding'