Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Aug 27, 2024
1 parent d7f98fc commit 68f2641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/frontend/page/home/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Input } from "@/components/ui/input";
import { Skeleton } from "@/components/ui/skeleton";
import { appConfig } from "@/config";
import apiClient from "@/lib/api";
import { cn } from "@/lib/utils";
import { cn, isBrowser } from "@/lib/utils";
import { ResponseInfo } from "@/types";
import { zodResolver } from "@hookform/resolvers/zod";
import { useTranslations } from "next-intl";
Expand Down Expand Up @@ -161,7 +161,7 @@ export function Main({
{error && <div className="rounded-md border border-red-500 p-10 mb-10">{error}</div>}
{fetching && <Skeleton className="h-72 w-full rounded-md mb-8" />}
{info && <Results info={info} />}
{host && images.map(image => <ImageCode {...image} key={image.src} />)}
{host && isBrowser() && images.map(image => <ImageCode {...image} key={image.src} />)}
{block1 && <Markdown content={block1} className="mt-10" />}
<Faqs faqs={faqs} title={t('frontend.home.faq.title')} />
</div>
Expand Down

0 comments on commit 68f2641

Please sign in to comment.