From dc5742b28ca779cd098e6dd211e6a986a6b2c9fa Mon Sep 17 00:00:00 2001 From: Phil Date: Tue, 13 Sep 2022 18:18:57 +0100 Subject: [PATCH] Removed unnecessary imports. --- web/components/profile/twitch-panel.tsx | 267 ++++++++++++------------ web/lib/twitch/link-twitch-account.ts | 83 ++++---- 2 files changed, 174 insertions(+), 176 deletions(-) diff --git a/web/components/profile/twitch-panel.tsx b/web/components/profile/twitch-panel.tsx index 4d886fb9..64e3a4e8 100644 --- a/web/components/profile/twitch-panel.tsx +++ b/web/components/profile/twitch-panel.tsx @@ -1,134 +1,133 @@ -import clsx from 'clsx' -import React, { MouseEventHandler, ReactNode, useState } from 'react' -import toast from 'react-hot-toast' - -import { copyToClipboard } from 'web/lib/util/copy' -import { linkTwitchAccountRedirect } from 'web/lib/twitch/link-twitch-account' -import { LinkIcon } from '@heroicons/react/solid' -import { track } from 'web/lib/service/analytics' -import { Button, ColorType } from './../button' -import { LoadingIndicator } from './../loading-indicator' -import { Row } from './../layout/row' -import { usePrivateUser, useUser } from 'web/hooks/use-user' -import { updatePrivateUser } from 'web/lib/firebase/users' -import { deleteField } from 'firebase/firestore' - -function BouncyButton(props: { - children: ReactNode - onClick?: MouseEventHandler - color?: ColorType -}) { - const { children, onClick, color } = props - return ( - - ) -} - -export function TwitchPanel() { - const user = useUser() - const privateUser = usePrivateUser() - - const twitchInfo = privateUser?.twitchInfo - const twitchName = privateUser?.twitchInfo?.twitchName - const twitchToken = privateUser?.twitchInfo?.controlToken - const twitchBotConnected = privateUser?.twitchInfo?.botEnabled - - const linkIcon =