[Search/SearchResults] SectionTitle itemCount 값 추가
This commit is contained in:
@@ -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 };
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user