Do some refactoring
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 1m10s

This commit is contained in:
Braydon 2024-04-21 23:58:56 -04:00
parent fb0b82edd3
commit 097a5d74fe
11 changed files with 13 additions and 13 deletions

@ -1,6 +1,6 @@
"use client";
import MinecraftButton from "@/components/minecraft-button";
import MinecraftButton from "@/components/button/minecraft-button";
import { Skeleton } from "@/components/ui/skeleton";
import { StarIcon } from "@heroicons/react/24/outline";
import Link from "next/link";

@ -1,5 +1,5 @@
import { Button } from "@/components/ui/button";
import { cn } from "@/app/common/utils";
import { cn } from "@/lib";
import { ButtonHTMLAttributes, ReactElement, ReactNode } from "react";
/**

@ -1,5 +1,5 @@
import GitHubStarButton from "@/components/github-star-button";
import MinecraftButton from "@/components/minecraft-button";
import GitHubStarButton from "@/components/button/github-star-button";
import MinecraftButton from "@/components/button/minecraft-button";
import config from "@/config";
import { minecrafter } from "@/font/fonts";
import { cn } from "@/app/common/utils";

@ -1,6 +1,6 @@
"use client";
import GitHubStarButton from "@/components/github-star-button";
import GitHubStarButton from "@/components/button/github-star-button";
import config from "@/config";
import { minecrafter } from "@/font/fonts";
import { cn } from "@/app/common/utils";

@ -1,4 +1,4 @@
import CopyButton from "@/components/copy-button";
import CopyButton from "@/components/button/copy-button";
import {
ContextMenu,
ContextMenuContent,
@ -11,7 +11,7 @@ import Link from "next/link";
import { ReactElement } from "react";
import { CachedPlayer, SkinPart } from "restfulmc-lib";
import CodeDialog from "@/components/code/code-dialog";
import RawJsonBadge from "@/components/raw-json-badge";
import RawJson from "@/components/badge/raw-json";
/**
* The props for a player result.
@ -45,7 +45,7 @@ const PlayerResult = ({ query, player }: PlayerResultProps): ReactElement => (
title="Raw Player Data"
description={`The raw JSON data for the player ${player.username}:`}
language="json"
trigger={<RawJsonBadge />}
trigger={<RawJson />}
>
{JSON.stringify(player, undefined, 4)}
</CodeDialog>

@ -1,4 +1,4 @@
import MinecraftButton from "@/components/minecraft-button";
import MinecraftButton from "@/components/button/minecraft-button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";

@ -8,7 +8,7 @@ import {
import config from "@/config";
import { minecraft } from "@/font/fonts";
import CodeDialog from "@/components/code/code-dialog";
import RawJsonBadge from "@/components/raw-json-badge";
import RawJson from "@/components/badge/raw-json";
/**
* The props for a server result.
@ -95,7 +95,7 @@ const ServerResult = ({ server }: ServerResultProps): ReactElement => {
title="Raw Server Data"
description={`The raw JSON data for the player ${server.hostname}:`}
language="json"
trigger={<RawJsonBadge />}
trigger={<RawJson />}
>
{JSON.stringify(server, undefined, 4)}
</CodeDialog>

@ -1,4 +1,4 @@
import MinecraftButton from "@/components/minecraft-button";
import MinecraftButton from "@/components/button/minecraft-button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";

@ -4,7 +4,7 @@ import Creeper from "@/components/creeper";
import { minecrafter } from "@/font/fonts";
import { cn } from "@/app/common/utils";
import { ReactElement, useEffect } from "react";
import MinecraftButton from "@/components/minecraft-button";
import MinecraftButton from "@/components/button/minecraft-button";
/**
* The error page.