fix: react-related issues

This commit is contained in:
dvelo 2024-11-23 17:59:09 -06:00
parent b073f719be
commit e45d8f0a70
2 changed files with 6 additions and 2 deletions

@ -80,6 +80,7 @@ import {
import { TagShower } from "./ServerList"; import { TagShower } from "./ServerList";
import { Button } from "./ui/button"; import { Button } from "./ui/button";
import { useTheme } from "next-themes"; import { useTheme } from "next-themes";
import { CheckmarkIcon } from "react-hot-toast";
export function SearchCommandBar() { export function SearchCommandBar() {
const [serverList, setServerList] = useState<OnlineServer[]>([]); const [serverList, setServerList] = useState<OnlineServer[]>([]);
@ -278,7 +279,7 @@ export function OfflineServerCB() {
{customized && ( {customized && (
<h2 className="flex items-center text-muted-foreground"> <h2 className="flex items-center text-muted-foreground">
<Check /> <CheckmarkIcon />
<span className="pl-1.5 text-[16px]"> <span className="pl-1.5 text-[16px]">
Is customized by a MHSF User Is customized by a MHSF User
</span> </span>

@ -1177,7 +1177,10 @@ export default function ServerList() {
{affiliates {affiliates
.filter((a) => a.mode.includes("server-list")) .filter((a) => a.mode.includes("server-list"))
.map((a) => ( .map((a) => (
<div className="border rounded p-4 col-span-2"> <div
className="border rounded p-4 col-span-2"
key={a.name}
>
{a.name} {a.name}
</div> </div>
))} ))}