[Search/SearchResults] SectionTitle itemCount 값 추가
This commit is contained in:
@@ -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 };
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
font-size: 24px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
&.large {
|
||||
min-width: 324px;
|
||||
max-width: 650px;
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user