Component

Add:
- TabsTwoHeaderCustom

Voting
Fix:
- history

# Np Issue
This commit is contained in:
2025-07-28 14:51:41 +08:00
parent b18044f53f
commit f21ff744d3
5 changed files with 99 additions and 5 deletions

View File

@@ -1,9 +1,33 @@
import { TextCustom, ViewWrapper } from "@/components";
import { ViewWrapper } from "@/components";
import TabsTwoHeaderCustom from "@/components/_ShareComponent/TabsTwoHeaderCustom";
import Voting_BoxPublishSection from "@/screens/Voting/BoxPublishSection";
import { useState } from "react";
export default function VotingHistory() {
const [activeCategory, setActiveCategory] = useState<string | null>("all");
const handlePress = (item: any) => {
setActiveCategory(item);
// tambahkan logika lain seperti filter dsb.
};
return (
<ViewWrapper>
<TextCustom>Voting History</TextCustom>
<ViewWrapper
hideFooter
headerComponent={
<TabsTwoHeaderCustom
leftValue="all"
rightValue="main"
leftText="Semua Riwayat"
rightText="Riwayat Saya"
activeCategory={activeCategory}
handlePress={handlePress}
/>
}
>
{Array.from({ length: 10 }).map((_, index) => (
<Voting_BoxPublishSection key={index} id={activeCategory as any} />
))}
</ViewWrapper>
);
}