QC: Inno Fix: - app.config.js - app/(application)/(user)/investment/[id]/index.tsx - app/(application)/(user)/voting/(tabs)/index.tsx - app/(application)/(user)/waiting-room.tsx - app/(application)/terms-agreement.tsx - context/AuthContext.tsx - ios/HIPMIBadungConnect.xcodeproj/project.pbxproj - ios/HIPMIBadungConnect/Info.plist - screens/Authentication/LoginView.tsx - screens/Authentication/VerificationView.tsx - screens/Home/topFeatureSection.tsx - screens/Invesment/BoxBerandaSection.tsx - screens/Invesment/ButtonInvestasiSection.tsx - screens/Invesment/DetailDataPublishSection.tsx - service/api-client/api-voting.ts - service/api-config.ts ### No Issue
30 lines
641 B
TypeScript
30 lines
641 B
TypeScript
import { ButtonCustom } from "@/components";
|
|
import { router } from "expo-router";
|
|
|
|
export default function Investment_ButtonInvestasiSection({
|
|
id,
|
|
isMine,
|
|
reminder,
|
|
}: {
|
|
id: string;
|
|
isMine: boolean;
|
|
reminder: boolean;
|
|
}) {
|
|
return (
|
|
<>
|
|
{isMine ? (
|
|
<ButtonCustom disabled>Investasi ini milik Anda</ButtonCustom>
|
|
) : (
|
|
<ButtonCustom
|
|
disabled={reminder}
|
|
onPress={() => {
|
|
router.navigate(`/investment/${id}/(transaction-flow)`);
|
|
}}
|
|
>
|
|
{reminder ? "Periode Investasi Berakhir" : "Beli Saham"}
|
|
</ButtonCustom>
|
|
)}
|
|
</>
|
|
);
|
|
}
|