From c16c353ec8d469bd2ffdeeb866a0279063ac1139 Mon Sep 17 00:00:00 2001 From: MTG2000 Date: Tue, 6 Sep 2022 14:14:02 +0300 Subject: [PATCH] fix: remove extra card --- .../ConnectToMakerModal.tsx | 88 ------------------- 1 file changed, 88 deletions(-) delete mode 100644 src/features/Tournaments/pages/MakersPage/ConnectToMakerModal/ConnectToMakerModal.tsx diff --git a/src/features/Tournaments/pages/MakersPage/ConnectToMakerModal/ConnectToMakerModal.tsx b/src/features/Tournaments/pages/MakersPage/ConnectToMakerModal/ConnectToMakerModal.tsx deleted file mode 100644 index ff10ea2..0000000 --- a/src/features/Tournaments/pages/MakersPage/ConnectToMakerModal/ConnectToMakerModal.tsx +++ /dev/null @@ -1,88 +0,0 @@ -import { motion } from 'framer-motion' -import { ModalCard, modalCardVariants } from 'src/Components/Modals/ModalsContainer/ModalsContainer' -import { FiGithub, FiLinkedin, FiMail, FiTwitter } from "react-icons/fi"; -import { IoClose } from 'react-icons/io5'; -import { GetMakersInTournamentQuery } from 'src/graphql'; -import Avatar from 'src/features/Profiles/Components/Avatar/Avatar'; -import { withHttp } from 'src/utils/helperFunctions'; - - -interface Props extends ModalCard { - maker: GetMakersInTournamentQuery['getMakersInTournament']['makers'][number] -} - -export default function LinkingAccountModal({ onClose, direction, maker, ...props }: Props) { - - - const links = [ - { - hasValue: maker.email, - text: maker.email?.replace(/(^\w+:|^)\/\//, '').replace(/\/$/, ""), - icon: FiMail, - colors: "bg-violet-100 text-violet-900", - url: maker.email && `mailto:${maker.email}` - }, - { - hasValue: maker.twitter, - text: maker.twitter, - icon: FiTwitter, - colors: "bg-blue-100 text-blue-500", - url: `https://twitter.com/@${maker.twitter}` - }, - { - hasValue: maker.github, - text: maker.github, - icon: FiGithub, - colors: "bg-pink-100 text-pink-600", - url: `https://github.com/${maker.github}` - }, - { - hasValue: maker.linkedin, - text: "LinkedIn", - icon: FiLinkedin, - colors: "bg-sky-100 text-cyan-600", - url: maker.linkedin && withHttp(maker.linkedin), - } - ]; - - - return ( - -
- -

Send team request 🤝

-
-
-
- -
-

{maker.name}

-

{maker.jobTitle}

-
- -

Team up with this maker by sending them a message on one of the following platforms.

-
- {links.filter(link => link.hasValue).map((link, idx) => - - - )} -
-
-
- ) -} - - -