Admin – App Information - app/(application)/admin/app-information/index.tsx - app/(application)/admin/app-information/business-field/[id]/index.tsx Admin Screens - screens/Admin/App-Information/BusinessFieldSection.tsx - screens/Admin/App-Information/InformationBankSection.tsx - screens/Admin/User-Access/ScreenUserAccess.tsx New Admin Screens - screens/Admin/App-Information/ScreenAppInformation.tsx - screens/Admin/App-Information/ScreenBusinessFieldDetail.tsx Shared Components - components/_ShareComponent/Admin/BoxTitlePage.tsx API Service - service/api-admin/api-master-admin.ts Styles - styles/global-styles.ts Docs - docs/prompt-for-qwen-code.md ### No Issue
57 lines
1.3 KiB
TypeScript
57 lines
1.3 KiB
TypeScript
import {
|
|
BadgeCustom,
|
|
CenterCustom,
|
|
Grid,
|
|
StackCustom,
|
|
TextCustom
|
|
} from "@/components";
|
|
import AdminBasicBox from "@/components/_ShareComponent/Admin/AdminBasicBox";
|
|
import { router } from "expo-router";
|
|
|
|
interface Bidang {
|
|
item: {
|
|
id: string;
|
|
name: string;
|
|
slug: string;
|
|
active: boolean;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
};
|
|
}
|
|
|
|
export default function AdminAppInformation_BusinessFieldSection({
|
|
item,
|
|
}: {
|
|
item: any;
|
|
}) {
|
|
return (
|
|
<>
|
|
<AdminBasicBox
|
|
onPress={() =>
|
|
router.push(`/admin/app-information/business-field/${item.item.id}`)
|
|
}
|
|
style={{ marginHorizontal: 10, marginVertical: 5 }}
|
|
>
|
|
<Grid>
|
|
<Grid.Col span={8} style={{ alignSelf: "center" }}>
|
|
<StackCustom gap={"xs"}>
|
|
<TextCustom bold truncate>
|
|
{item?.item?.name || "-"}
|
|
</TextCustom>
|
|
</StackCustom>
|
|
</Grid.Col>
|
|
<Grid.Col span={4} style={{ alignItems: "flex-end" }}>
|
|
<CenterCustom>
|
|
{item?.item?.active ? (
|
|
<BadgeCustom color="green">Aktif</BadgeCustom>
|
|
) : (
|
|
<BadgeCustom color="red">Tidak Aktif</BadgeCustom>
|
|
)}
|
|
</CenterCustom>
|
|
</Grid.Col>
|
|
</Grid>
|
|
</AdminBasicBox>
|
|
</>
|
|
);
|
|
}
|