Improved serverlist
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import Enclave from "@/app/app";
|
import Enclave from "@/app/app";
|
||||||
import { getHTTPUrl, saveServerList } from "@/lib/serverList";
|
import { getHTTPUrl, saveServerList } from "@/lib/serverList";
|
||||||
import { AddServerDialog } from "../dialog/AddServerDialog";
|
import { AddServerDialog } from "../dialog/AddServerDialog";
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
export default function ServerList({
|
export default function ServerList({
|
||||||
appRef,
|
appRef,
|
||||||
@@ -16,11 +17,11 @@ export default function ServerList({
|
|||||||
<img
|
<img
|
||||||
src={getHTTPUrl(hostname, server.isSecure, "/icon")}
|
src={getHTTPUrl(hostname, server.isSecure, "/icon")}
|
||||||
key={hostname}
|
key={hostname}
|
||||||
className={
|
className={cn(
|
||||||
hostname === appRef.current?.server?.hostname
|
"rounded-lg",
|
||||||
? "rounded-lg"
|
hostname === appRef.current?.server?.hostname &&
|
||||||
: "rounded-full"
|
"border-primary border border-2",
|
||||||
}
|
)}
|
||||||
|
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (!appRef.current) {
|
if (!appRef.current) {
|
||||||
|
|||||||
Reference in New Issue
Block a user