deskripsi:
Fix: ProfileSection & /dummy-user ( image ) Event: box publisj # No Issue"
This commit is contained in:
@@ -56,10 +56,11 @@ export default function EventHistory() {
|
|||||||
<Event_BoxPublishSection
|
<Event_BoxPublishSection
|
||||||
key={index.toString()}
|
key={index.toString()}
|
||||||
id={index.toString()}
|
id={index.toString()}
|
||||||
username={`Hisrory ${activeCategory === "main" ? "Saya" : "Semua"}`}
|
username={`Riwayat ${activeCategory === "main" ? "Saya" : "Semua"}`}
|
||||||
rightComponentAvatar={
|
rightComponentAvatar={
|
||||||
<TextCustom>{new Date().toLocaleDateString()}</TextCustom>
|
<TextCustom>{new Date().toLocaleDateString()}</TextCustom>
|
||||||
}
|
}
|
||||||
|
href={`/event/${index}/history`}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
|
|||||||
@@ -12,7 +12,11 @@ export default function EventBeranda() {
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
{Array.from({ length: 10 }).map((_, index) => (
|
{Array.from({ length: 10 }).map((_, index) => (
|
||||||
<Event_BoxPublishSection key={index} id={index.toString()} />
|
<Event_BoxPublishSection
|
||||||
|
key={index}
|
||||||
|
id={index.toString()}
|
||||||
|
href={`/event/${index}/publish`}
|
||||||
|
/>
|
||||||
))}
|
))}
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import LeftButtonCustom from "@/components/Button/BackButton";
|
|||||||
import DrawerCustom from "@/components/Drawer/DrawerCustom";
|
import DrawerCustom from "@/components/Drawer/DrawerCustom";
|
||||||
import { MainColor } from "@/constants/color-palet";
|
import { MainColor } from "@/constants/color-palet";
|
||||||
import { drawerItemsProfile } from "@/screens/Profile/ListPage";
|
import { drawerItemsProfile } from "@/screens/Profile/ListPage";
|
||||||
import Profile_MenuDrawerSection from "@/screens/Profile/MenuDrawerSection";
|
import Profile_MenuDrawerSection from "@/screens/Profile/menuDrawerSection";
|
||||||
import ProfilSection from "@/screens/Profile/ProfilSection";
|
import ProfileSection from "@/screens/Profile/ProfileSection";
|
||||||
import { GStyles } from "@/styles/global-styles";
|
import { GStyles } from "@/styles/global-styles";
|
||||||
import { Ionicons } from "@expo/vector-icons";
|
import { Ionicons } from "@expo/vector-icons";
|
||||||
import { router, Stack, useLocalSearchParams } from "expo-router";
|
import { router, Stack, useLocalSearchParams } from "expo-router";
|
||||||
@@ -52,7 +52,7 @@ export default function Profile() {
|
|||||||
headerTitleStyle: GStyles.headerTitleStyle,
|
headerTitleStyle: GStyles.headerTitleStyle,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<ProfilSection />
|
<ProfileSection />
|
||||||
</ViewWrapper>
|
</ViewWrapper>
|
||||||
|
|
||||||
{/* Drawer Komponen Eksternal */}
|
{/* Drawer Komponen Eksternal */}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
BIN
assets/images/dummy/dummy-user.png
Normal file
BIN
assets/images/dummy/dummy-user.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 395 KiB |
@@ -1,5 +1,5 @@
|
|||||||
const DUMMY_IMAGE = {
|
const DUMMY_IMAGE = {
|
||||||
avatar: require("@/assets/images/dummy/dummy-avatar.png"),
|
avatar: require("@/assets/images/dummy/dummy-user.png"),
|
||||||
background: require("@/assets/images/dummy/dummy-image-background.jpg"),
|
background: require("@/assets/images/dummy/dummy-image-background.jpg"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -30,9 +30,9 @@ export default function LoginView() {
|
|||||||
const id = randomAlfabet + randomNumber + fixNumber;
|
const id = randomAlfabet + randomNumber + fixNumber;
|
||||||
console.log("login user id :", id);
|
console.log("login user id :", id);
|
||||||
|
|
||||||
// router.navigate("/verification");
|
router.navigate("/verification");
|
||||||
// router.navigate(`/(application)/(user)/profile/${id}`);
|
// router.navigate(`/(application)/(user)/profile/${id}`);
|
||||||
router.navigate("/(application)/(user)/home");
|
// router.navigate("/(application)/(user)/home");
|
||||||
// router.navigate(`/(application)/profile/${id}/edit`);
|
// router.navigate(`/(application)/profile/${id}/edit`);
|
||||||
// router.navigate(`/(application)/(user)/portofolio/${id}`)
|
// router.navigate(`/(application)/(user)/portofolio/${id}`)
|
||||||
// router.navigate(`/(application)/(image)/preview-image/${id}`);
|
// router.navigate(`/(application)/(image)/preview-image/${id}`);
|
||||||
|
|||||||
@@ -4,12 +4,14 @@ import {
|
|||||||
StackCustom,
|
StackCustom,
|
||||||
TextCustom,
|
TextCustom,
|
||||||
} from "@/components";
|
} from "@/components";
|
||||||
|
import { Href } from "expo-router";
|
||||||
|
|
||||||
export default function Event_BoxPublishSection({
|
export default function Event_BoxPublishSection({
|
||||||
id,
|
id,
|
||||||
title,
|
title,
|
||||||
username,
|
username,
|
||||||
description,
|
description,
|
||||||
|
href,
|
||||||
|
|
||||||
// Avatar
|
// Avatar
|
||||||
sourceAvatar,
|
sourceAvatar,
|
||||||
@@ -19,6 +21,7 @@ export default function Event_BoxPublishSection({
|
|||||||
title?: string;
|
title?: string;
|
||||||
username?: string;
|
username?: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
|
href: Href;
|
||||||
|
|
||||||
// Avatar
|
// Avatar
|
||||||
sourceAvatar?: string;
|
sourceAvatar?: string;
|
||||||
@@ -26,7 +29,7 @@ export default function Event_BoxPublishSection({
|
|||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<BoxWithHeaderSection href={`/event/${id}/history`}>
|
<BoxWithHeaderSection href={href}>
|
||||||
<StackCustom gap={"xs"}>
|
<StackCustom gap={"xs"}>
|
||||||
<AvatarUsernameAndOtherComponent
|
<AvatarUsernameAndOtherComponent
|
||||||
avatarHref={`/profile/${id}`}
|
avatarHref={`/profile/${id}`}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { router, useLocalSearchParams } from "expo-router";
|
|||||||
import { View } from "react-native";
|
import { View } from "react-native";
|
||||||
import AvatarAndBackground from "./AvatarAndBackground";
|
import AvatarAndBackground from "./AvatarAndBackground";
|
||||||
|
|
||||||
export default function ProfilSection() {
|
export default function ProfileSection() {
|
||||||
const { id } = useLocalSearchParams();
|
const { id } = useLocalSearchParams();
|
||||||
|
|
||||||
const listData = [
|
const listData = [
|
||||||
Reference in New Issue
Block a user