fix:date recap article
This commit is contained in:
parent
7d50f4b070
commit
3d420f48f2
|
|
@ -141,7 +141,7 @@ export default function HeaderNews() {
|
||||||
src={
|
src={
|
||||||
newsItem?.thumbnailUrl === ""
|
newsItem?.thumbnailUrl === ""
|
||||||
? "/no-image.jpg"
|
? "/no-image.jpg"
|
||||||
: newsItem?.thumbnailUrl
|
: newsItem?.thumbnailUrl + "?isBanner=true"
|
||||||
}
|
}
|
||||||
className={`!object-cover !rounded-none ${
|
className={`!object-cover !rounded-none ${
|
||||||
portraitMap[index]
|
portraitMap[index]
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ import {
|
||||||
parseAbsoluteToLocal,
|
parseAbsoluteToLocal,
|
||||||
} from "@internationalized/date";
|
} from "@internationalized/date";
|
||||||
import { Input } from "@heroui/input";
|
import { Input } from "@heroui/input";
|
||||||
import { EyeIconMdi } from "@/components/icons";
|
import { EyeIconMdi, SearchIcons } from "@/components/icons";
|
||||||
|
|
||||||
type ArticleData = Article & {
|
type ArticleData = Article & {
|
||||||
no: number;
|
no: number;
|
||||||
|
|
@ -193,7 +193,7 @@ export default function DashboardContainer() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
fetchPostCount();
|
fetchPostCount();
|
||||||
}, [postContentDate, selectedCategory]);
|
}, [selectedCategory]);
|
||||||
|
|
||||||
async function fetchPostCount() {
|
async function fetchPostCount() {
|
||||||
const getDate = (data: any) => {
|
const getDate = (data: any) => {
|
||||||
|
|
@ -419,6 +419,7 @@ export default function DashboardContainer() {
|
||||||
</p>
|
</p>
|
||||||
<DateRangePicker
|
<DateRangePicker
|
||||||
hideTimeZone
|
hideTimeZone
|
||||||
|
selectorButtonPlacement="start"
|
||||||
value={postContentDate}
|
value={postContentDate}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
e && setPostContentDate(e);
|
e && setPostContentDate(e);
|
||||||
|
|
@ -434,6 +435,14 @@ export default function DashboardContainer() {
|
||||||
}}
|
}}
|
||||||
size="sm"
|
size="sm"
|
||||||
variant="bordered"
|
variant="bordered"
|
||||||
|
endContent={
|
||||||
|
<a
|
||||||
|
className="cursor-pointer hover:text-black"
|
||||||
|
onClick={() => fetchPostCount()}
|
||||||
|
>
|
||||||
|
<SearchIcons />
|
||||||
|
</a>
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-row border-b-1 gap-1 py-1 items-center">
|
<div className="flex flex-row border-b-1 gap-1 py-1 items-center">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue