1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00

Clean up components code

This commit is contained in:
Steffo 2022-06-03 03:56:43 +02:00
parent 5e1ff05c0a
commit c708201379
Signed by: steffo
GPG key ID: 6965406171929D01
9 changed files with 33 additions and 34 deletions

View file

@ -1,4 +1,4 @@
import classNames from "classnames";
import { default as classNames } from "classnames";
import { useTranslation } from "next-i18next";
import { HTMLProps } from "react";
import { useMyEvents } from "../hooks/useMyEvents";

View file

@ -1,5 +1,5 @@
import Image, { ImageProps } from "next/image";
import classNames from "classnames"
import { default as Image, ImageProps } from "next/image";
import { default as classNames } from "classnames"
export function Avatar(props: ImageProps) {
return (

View file

@ -1,5 +1,5 @@
import { Event } from "@prisma/client"
import Link from "next/link"
import { default as Link } from "next/link"
type EventListProps = {
data: Event[]

View file

@ -1,5 +1,5 @@
import { FontAwesomeIcon, FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
import classNames from "classnames";
import { default as classNames } from "classnames";
export function FestaIcon(props: FontAwesomeIconProps) {
const newClassName = classNames(props.className, "icon")

View file

@ -1,4 +1,3 @@
import * as React from 'react';
import { default as OriginalTelegramLoginButton } from 'react-telegram-login'