Event
Fix: - user)/event/(tabs)/contribution: tampilan creator yang di depan - /Event/ButtonStatusSection: return message ### No Issuue
This commit is contained in:
@@ -35,6 +35,7 @@ export default function EventContribution() {
|
|||||||
category: "contribution",
|
category: "contribution",
|
||||||
userId: user?.id,
|
userId: user?.id,
|
||||||
});
|
});
|
||||||
|
console.log("[DATA] ", JSON.stringify(response.data, null, 2));
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
setListData(response.data);
|
setListData(response.data);
|
||||||
|
|
||||||
@@ -70,9 +71,9 @@ export default function EventContribution() {
|
|||||||
>
|
>
|
||||||
<StackCustom>
|
<StackCustom>
|
||||||
<AvatarUsernameAndOtherComponent
|
<AvatarUsernameAndOtherComponent
|
||||||
avatar={item?.User?.Profile?.imageId}
|
avatar={item?.Event?.Author?.Profile?.imageId}
|
||||||
avatarHref={`/profile/${item?.User?.Profile?.id}`}
|
avatarHref={`/profile/${item?.Event?.Author?.Profile?.id}`}
|
||||||
name={item?.User?.username}
|
name={item?.Event?.Author?.username}
|
||||||
rightComponent={
|
rightComponent={
|
||||||
<TextCustom truncate>
|
<TextCustom truncate>
|
||||||
{dateTimeView({
|
{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}
|
{item?.Event?.title}
|
||||||
</TextCustom>
|
</TextCustom>
|
||||||
<Spacing height={10} />
|
<Spacing height={0} />
|
||||||
|
|
||||||
{/* <Grid>
|
{/* <Grid>
|
||||||
{item?.Event?.Event_Peserta?.map(
|
{item?.Event?.Event_Peserta?.map(
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ export default function Event_ButtonStatusSection({
|
|||||||
if (response.success) {
|
if (response.success) {
|
||||||
Toast.show({
|
Toast.show({
|
||||||
type: "success",
|
type: "success",
|
||||||
text1: response.message,
|
text1: "Data dihapus",
|
||||||
});
|
});
|
||||||
router.back();
|
router.back();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user