[Search/SearchResults] SectionTitle itemCount 값 추가

This commit is contained in:
hyunwoo93.cha
2024-02-08 13:35:23 +09:00
parent f7dd4f6998
commit a55eb51362
3 changed files with 8 additions and 7 deletions

View File

@@ -1,13 +1,13 @@
import React, { useCallback, useState } from "react";
import classNames from "classnames";
import compose from "ramda/src/compose";
import css from "./TButton.module.less";
import React, { useCallback, useState } from "react";
import Spottable from "@enact/spotlight/Spottable";
import { Marquee, MarqueeController } from "@enact/ui/Marquee";
import css from "./TButton.module.less";
const SIZES = {
small: "small",
large: "large",
@@ -115,4 +115,4 @@ const TButton = ButtonDecorator(TButtonBase);
export default TButton;
export { TYPES, SIZES, COLOR };
export { COLOR, SIZES, TYPES };

View File

@@ -36,6 +36,7 @@
font-size: 24px;
border-radius: 6px;
}
&.large {
min-width: 324px;
max-width: 650px;

View File

@@ -33,13 +33,13 @@ export default function SearchResults({
)}
{showDatas && (
<>
<SectionTitle title={$L("Shows") + " (" + showCount + ")"} />
<SectionTitle title={$L("Shows")} itemCount={showCount} />
<SearchShowResults showDatas={showDatas} showCount={showCount} />
</>
)}
{itemDatas && (
<>
<SectionTitle title={$L("Items") + " (" + itemCount + ")"} />
<SectionTitle title={$L("Items")} itemCount={itemCount} />
<SearchItemResults
itemDatas={itemDatas}
itemCount={itemCount}