mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
Clean up components code
This commit is contained in:
parent
5e1ff05c0a
commit
c708201379
9 changed files with 33 additions and 34 deletions
|
@ -1,4 +1,4 @@
|
||||||
import classNames from "classnames";
|
import { default as classNames } from "classnames";
|
||||||
import { useTranslation } from "next-i18next";
|
import { useTranslation } from "next-i18next";
|
||||||
import { HTMLProps } from "react";
|
import { HTMLProps } from "react";
|
||||||
import { useMyEvents } from "../hooks/useMyEvents";
|
import { useMyEvents } from "../hooks/useMyEvents";
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import Image, { ImageProps } from "next/image";
|
import { default as Image, ImageProps } from "next/image";
|
||||||
import classNames from "classnames"
|
import { default as classNames } from "classnames"
|
||||||
|
|
||||||
export function Avatar(props: ImageProps) {
|
export function Avatar(props: ImageProps) {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Event } from "@prisma/client"
|
import { Event } from "@prisma/client"
|
||||||
import Link from "next/link"
|
import { default as Link } from "next/link"
|
||||||
|
|
||||||
type EventListProps = {
|
type EventListProps = {
|
||||||
data: Event[]
|
data: Event[]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { FontAwesomeIcon, FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon, FontAwesomeIconProps } from "@fortawesome/react-fontawesome";
|
||||||
import classNames from "classnames";
|
import { default as classNames } from "classnames";
|
||||||
|
|
||||||
export function FestaIcon(props: FontAwesomeIconProps) {
|
export function FestaIcon(props: FontAwesomeIconProps) {
|
||||||
const newClassName = classNames(props.className, "icon")
|
const newClassName = classNames(props.className, "icon")
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import * as React from 'react';
|
|
||||||
import { default as OriginalTelegramLoginButton } from 'react-telegram-login'
|
import { default as OriginalTelegramLoginButton } from 'react-telegram-login'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue