Fix: - app/(application)/(user)/collaboration/create.tsx - app/(application)/(user)/event/[id]/edit.tsx - app/(application)/(user)/event/create.tsx - app/(application)/(user)/profile/[id]/blocked-list.tsx - app/(application)/(user)/profile/[id]/index.tsx - app/(application)/(user)/voting/[id]/[status]/detail.tsx - components/Button/FloatingButton.tsx - components/TextArea/TextAreaCustom.tsx - components/TextInput/TextInputCustom.tsx - constants/color-palet.ts - screens/Authentication/LoginView.tsx - screens/Home/topFeatureSection.tsx - screens/Portofolio/SocialMediaSection.tsx - screens/Voting/BoxDetailHasilVotingSection.tsx - styles/global-styles.ts ### No Issue
39 lines
919 B
TypeScript
39 lines
919 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 style={{
|
|
alignItems: "center",
|
|
}}>
|
|
<CircleContainer value={item?.jumlah} />
|
|
<TextCustom truncate={2} align="center" size="small">{item?.value}</TextCustom>
|
|
</StackCustom>
|
|
</Grid.Col>
|
|
))}
|
|
</Grid>
|
|
</StackCustom>
|
|
</BaseBox>
|
|
</>
|
|
);
|
|
}
|