### File Baru (4) - `screens/Admin/Voting/ScreenVotingStatus.tsx` - `screens/Admin/Voting/ScreenVotingHistory.tsx` - `screens/Admin/Voting/ScreenEventTypeOfEvent.tsx` - `screens/Admin/Voting/BoxVotingStatus.tsx` ### File Diubah (3) - `app/(application)/admin/voting/[status]/status.tsx` → 5 baris - `app/(application)/admin/voting/history.tsx` → 5 baris - `app/(application)/admin/event/type-of-event.tsx` → 5 baris ### API Updates (2) - `service/api-admin/api-admin-voting.ts` → tambah param `page` - `service/api-admin/api-master-admin.ts` → tambah param `page` ## Fitur Baru - Pagination (infinite scroll) - Pull-to-Refresh - Skeleton Loading - Empty State - Search Functionality ### No Issue"
38 lines
826 B
TypeScript
38 lines
826 B
TypeScript
import { ViewStyle } from "react-native";
|
|
import Grid from "../Grid/GridCustom";
|
|
|
|
export default function GridTwoView({
|
|
spanLeft = 6,
|
|
spanRight = 6,
|
|
leftItem,
|
|
rightItem,
|
|
styleLeft,
|
|
styleRight,
|
|
}: {
|
|
spanLeft?: number;
|
|
spanRight?: number;
|
|
leftItem?: React.ReactNode;
|
|
rightItem?: React.ReactNode;
|
|
styleLeft?: ViewStyle;
|
|
styleRight?: ViewStyle;
|
|
}) {
|
|
const baseStyle: ViewStyle = { justifyContent: "center" };
|
|
|
|
return (
|
|
<Grid containerStyle={{ marginBottom: 0 }}>
|
|
<Grid.Col
|
|
span={spanLeft}
|
|
style={styleLeft ? { ...baseStyle, ...styleLeft } : baseStyle}
|
|
>
|
|
{leftItem}
|
|
</Grid.Col>
|
|
<Grid.Col
|
|
span={spanRight}
|
|
style={styleRight ? { ...baseStyle, ...styleRight } : baseStyle}
|
|
>
|
|
{rightItem}
|
|
</Grid.Col>
|
|
</Grid>
|
|
);
|
|
}
|