Fix: - Integrasi API pada (tabs) status & detail - Integrasi API beranda & detail - Integrasi API pada voting ### No Issue
37 lines
839 B
TypeScript
37 lines
839 B
TypeScript
import {
|
|
BaseBox,
|
|
StackCustom,
|
|
TextCustom,
|
|
Grid,
|
|
CircleContainer,
|
|
} from "@/components";
|
|
|
|
export default function Voting_BoxDetailHasilVotingSection({
|
|
listData,
|
|
}: {
|
|
listData?: any[];
|
|
}) {
|
|
return (
|
|
<>
|
|
<BaseBox>
|
|
<StackCustom>
|
|
<TextCustom bold align="center">
|
|
Hasil Voting
|
|
</TextCustom>
|
|
|
|
<Grid>
|
|
{listData?.map((item: any, i: number) => (
|
|
<Grid.Col span={12 / listData?.length} style={{ alignItems: "center" }} key={i}>
|
|
<StackCustom>
|
|
<CircleContainer value={item?.jumlah} />
|
|
<TextCustom align="center" size="small">{item?.value}</TextCustom>
|
|
</StackCustom>
|
|
</Grid.Col>
|
|
))}
|
|
</Grid>
|
|
</StackCustom>
|
|
</BaseBox>
|
|
</>
|
|
);
|
|
}
|