deskripsi:

Fix: portofolio: alert hapus porto
Fix: profile create hapus text input alamat & edit ganti select jenis kelamin
Fix: menu forum
Fix:  button porto

# No Issue
This commit is contained in:
2025-07-15 14:13:08 +08:00
parent 3376336c55
commit 24913a9f97
6 changed files with 49 additions and 38 deletions

View File

@@ -30,14 +30,14 @@ const drawerItemsForumBeranda = ({
{
icon:
status === "Open" ? (
<Ionicons name="open" size={ICON_SIZE_SMALL} color={MainColor.white} />
) : (
<Ionicons name="close" size={ICON_SIZE_SMALL} color={MainColor.white} />
) : (
<Ionicons name="open" size={ICON_SIZE_SMALL} color={MainColor.white} />
),
label: status === "Open" ? "Buka forum" : "Tutup forum",
label: status === "Open" ? "Tutup forum" : "Buka forum",
path: "",
color: status === "Open" ? MainColor.green : MainColor.orange,
color: status === "Open" ? MainColor.orange : MainColor.green,
},
{
icon: (

View File

@@ -2,9 +2,13 @@ import { ButtonCustom } from "@/components";
import { MainColor } from "@/constants/color-palet";
import { Ionicons } from "@expo/vector-icons";
export default function Portofolio_ButtonDelete() {
export default function Portofolio_ButtonDelete({
setShowDeleteAlert,
}: {
setShowDeleteAlert: (value: boolean) => void;
}) {
const handleDelete = () => {
console.log("Delete");
setShowDeleteAlert(true);
};
return (
<ButtonCustom textColor={MainColor.white} iconLeft={<Ionicons name="trash-outline" size={20} color="white" />} onPress={handleDelete} backgroundColor={MainColor.red}>

View File

@@ -4,13 +4,17 @@ import Portofolio_Data from "./DataPortofolio";
import Portofolio_SocialMediaSection from "./SocialMediaSection";
import Portofolio_ButtonDelete from "./ButtonDelete";
export default function PorfofolioSection() {
export default function PorfofolioSection({
setShowDeleteAlert,
}: {
setShowDeleteAlert: (value: boolean) => void;
}) {
return (
<StackCustom>
<Portofolio_Data />
<Portofolio_BusinessLocation />
<Portofolio_SocialMediaSection />
<Portofolio_ButtonDelete/>
<Portofolio_ButtonDelete setShowDeleteAlert={setShowDeleteAlert}/>
<Spacing/>
</StackCustom>
);