Files
hipmi-mobile/screens/Event/BoxPublishSection.tsx
bagasbanuna 573b525352 Fix QC ( Keano )
Fix:
- modified:   app/(application)/(user)/home.tsx
- modified:   app/(application)/(user)/voting/create.tsx
- modified:   components/DateInput/DataTimeAndroid.tsx
- modified:   components/DateInput/DateTimePickerCustom.tsx
- modified:   screens/Event/BoxPublishSection.tsx

### No Issue
2025-12-11 14:01:05 +08:00

43 lines
1001 B
TypeScript

import {
AvatarUsernameAndOtherComponent,
BoxWithHeaderSection,
StackCustom,
TextCustom,
} from "@/components";
import { Href } from "expo-router";
export default function Event_BoxPublishSection({
href,
data,
// Avatar
sourceAvatar,
rightComponentAvatar,
}: {
href: Href;
data: any;
// Avatar
sourceAvatar?: string;
rightComponentAvatar?: React.ReactNode;
}) {
return (
<>
<BoxWithHeaderSection href={href}>
<StackCustom gap={"xs"}>
<AvatarUsernameAndOtherComponent
avatarHref={`/profile/${data?.Author?.Profile?.id}`}
name={data?.Author?.username || "-"}
// rightComponent={rightComponentAvatar}
avatar={data?.Author?.Profile?.imageId || ""}
/>
<TextCustom truncate bold>
{data?.title || "-"}
</TextCustom>
<TextCustom truncate={2}>{data?.deskripsi || "-"}</TextCustom>
</StackCustom>
</BoxWithHeaderSection>
</>
);
}