style: clean up code formatting and remove trailing whitespace
refactor: reorganize imports and fix type imports
This commit is contained in:
1 parent
d3704602fd
commit
47c04de6fe
232 files changed
+7140
-4798
No files matched your search
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { useState, useEffect } from "react";
|
||||
import { useTranslations } from "next-intl";
|
||||
import { useEffect, useState } from "react";
|
||||
import { ItemCard } from "@/components/item-card";
|
||||
import { BlurFade } from "@/components/ui/blur-fade";
|
||||
import { Skeleton } from "@/components/ui/skeleton";
|
||||
@@ -38,7 +38,7 @@ export function MarketExample() {
|
||||
// Buscar mix de categorias para variedade visual
|
||||
const categories = ["weapon", "armor", "helmet"];
|
||||
const response = await fetch(
|
||||
`/api/items?category=${categories.join(",")}&pageSize=8&sort=name`
|
||||
`/api/items?category=${categories.join(",")}&pageSize=8&sort=name`,
|
||||
);
|
||||
|
||||
if (!response.ok) {
|
||||
@@ -116,9 +116,7 @@ export function MarketExample() {
|
||||
<div className="container">
|
||||
<BlurFade delay={0.2}>
|
||||
<div className="text-center mb-16">
|
||||
<h2 className="text-4xl font-bold mb-4">
|
||||
{t("title")}
|
||||
</h2>
|
||||
<h2 className="text-4xl font-bold mb-4">{t("title")}</h2>
|
||||
<p className="text-lg text-muted-foreground max-w-2xl mx-auto">
|
||||
{t("subtitle")}
|
||||
</p>
|
||||
@@ -131,9 +129,7 @@ export function MarketExample() {
|
||||
) : error ? (
|
||||
<div className="text-center py-12">
|
||||
<div className="text-6xl mb-4">⚠️</div>
|
||||
<h3 className="text-xl font-semibold mb-2">
|
||||
{t("errorTitle")}
|
||||
</h3>
|
||||
<h3 className="text-xl font-semibold mb-2">{t("errorTitle")}</h3>
|
||||
<p className="text-muted-foreground">{error}</p>
|
||||
</div>
|
||||
) : (
|
||||
@@ -153,9 +149,7 @@ export function MarketExample() {
|
||||
<h3 className="text-xl font-semibold mb-2">
|
||||
Nenhum item encontrado
|
||||
</h3>
|
||||
<p className="text-muted-foreground">
|
||||
Tente novamente mais tarde
|
||||
</p>
|
||||
<p className="text-muted-foreground">Tente novamente mais tarde</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user