Fix:
-  user)/event/(tabs)/contribution: tampilan creator yang di depan
- /Event/ButtonStatusSection: return message

### No Issuue
This commit is contained in:
2025-09-16 11:17:36 +08:00
parent 76fb14ed0c
commit 3287f4c287
2 changed files with 7 additions and 6 deletions

View File

@@ -35,6 +35,7 @@ export default function EventContribution() {
category: "contribution",
userId: user?.id,
});
console.log("[DATA] ", JSON.stringify(response.data, null, 2));
if (response.success) {
setListData(response.data);
@@ -70,9 +71,9 @@ export default function EventContribution() {
>
<StackCustom>
<AvatarUsernameAndOtherComponent
avatar={item?.User?.Profile?.imageId}
avatarHref={`/profile/${item?.User?.Profile?.id}`}
name={item?.User?.username}
avatar={item?.Event?.Author?.Profile?.imageId}
avatarHref={`/profile/${item?.Event?.Author?.Profile?.id}`}
name={item?.Event?.Author?.username}
rightComponent={
<TextCustom truncate>
{dateTimeView({
@@ -83,10 +84,10 @@ export default function EventContribution() {
}
/>
<TextCustom bold align="center" size="xlarge">
<TextCustom bold align="center" size="xlarge" truncate={2}>
{item?.Event?.title}
</TextCustom>
<Spacing height={10} />
<Spacing height={0} />
{/* <Grid>
{item?.Event?.Event_Peserta?.map(

View File

@@ -127,7 +127,7 @@ export default function Event_ButtonStatusSection({
if (response.success) {
Toast.show({
type: "success",
text1: response.message,
text1: "Data dihapus",
});
router.back();
} else {