diff --git a/components/homepage/homeLoggedIn.tsx b/components/homepage/homeLoggedIn.tsx index 138906fe5..34f251469 100644 --- a/components/homepage/homeLoggedIn.tsx +++ b/components/homepage/homeLoggedIn.tsx @@ -7,7 +7,6 @@ import Image from 'next/image'; import Link from 'next/link'; import { useRouter } from 'next/router'; import React, { useContext, useState } from 'react'; -import Theme from '../../constants/theme'; import TimeRange from '../../constants/timeRange'; import { AppContext } from '../../contexts/appContext'; import { useTour } from '../../hooks/useTour'; @@ -43,15 +42,11 @@ export default function HomeLoggedIn({ topLevelsThisMonth, user, }: HomeLoggedInProps) { - const { multiplayerSocket, theme, userConfig } = useContext(AppContext); + const { multiplayerSocket, userConfig } = useContext(AppContext); const router = useRouter(); const [search, setSearch] = useState(''); const { connectedPlayersCount, matches, socket } = multiplayerSocket; - const buttonClassNames = classNames('py-2.5 px-3.5 inline-flex justify-center items-center gap-2 rounded-md border font-medium align-middle focus:z-10 focus:outline-none focus:ring-2 focus:ring-blue-600 transition-all text-sm whitespace-nowrap', - theme === Theme.Light ? - 'bg-green-100 hover:bg-gray-50 border-gray-300 text-gray-700' : - 'bg-gray-800 hover:bg-slate-600 border-gray-700 text-gray-300' - ); + const buttonClassNames = 'py-2.5 px-3.5 inline-flex justify-center items-center gap-2 rounded-md border font-medium align-middle focus:z-10 focus:outline-none focus:ring-2 focus:ring-blue-600 transition-all text-sm whitespace-nowrap bg-green-100 dark:bg-gray-800 hover:bg-gray-50 hover:dark:bg-slate-600 border-gray-300 dark:border-gray-700 text-gray-700 dark:text-gray-300'; const tour = useTour(PagePath.HOME); diff --git a/components/level/reviews/commentThread.tsx b/components/level/reviews/commentThread.tsx index 30f0b4659..30a3038cb 100644 --- a/components/level/reviews/commentThread.tsx +++ b/components/level/reviews/commentThread.tsx @@ -3,7 +3,6 @@ import { Types } from 'mongoose'; import React, { useContext, useEffect, useRef, useState } from 'react'; import toast from 'react-hot-toast'; import { KeyedMutator } from 'swr'; -import Theme from '../../../constants/theme'; import { AppContext } from '../../../contexts/appContext'; import { COMMENT_QUERY_LIMIT } from '../../../models/CommentEnums'; import { EnrichedComment } from '../../../models/db/comment'; @@ -29,7 +28,7 @@ export default function CommentThread({ className, comment, mutateComments, onSe const [text, setText] = useState(''); const [totalRows, setTotalRows] = useState(comment.totalReplies || 0); const [page, setPage] = useState(0); - const { theme, user } = useContext(AppContext); + const { user } = useContext(AppContext); useEffect(() => { const urlParams = new URLSearchParams(window.location.search); @@ -210,12 +209,7 @@ export default function CommentThread({ className, comment, mutateComments, onSe :