[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 classNames from "classnames";
import compose from "ramda/src/compose"; 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 Spottable from "@enact/spotlight/Spottable";
import { Marquee, MarqueeController } from "@enact/ui/Marquee"; import { Marquee, MarqueeController } from "@enact/ui/Marquee";
import css from "./TButton.module.less";
const SIZES = { const SIZES = {
small: "small", small: "small",
large: "large", large: "large",
@@ -115,4 +115,4 @@ const TButton = ButtonDecorator(TButtonBase);
export default TButton; export default TButton;
export { TYPES, SIZES, COLOR }; export { COLOR, SIZES, TYPES };

View File

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

View File

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