fix folder
deskripsi: - pindah folder event ke (user)
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
import { MainColor } from "@/constants/color-palet";
|
||||
import { router } from "expo-router";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
import { Href, router } from "expo-router";
|
||||
|
||||
const BackButton = () => {
|
||||
/**
|
||||
*
|
||||
* @param path - path to navigate to ?
|
||||
* @default router.back()
|
||||
* @returns if path : router.replace(path) else router.back()
|
||||
*/
|
||||
const LeftButtonCustom = ({path}: {path?: Href}) => {
|
||||
return (
|
||||
<Ionicons
|
||||
name="arrow-back"
|
||||
size={20}
|
||||
color={MainColor.yellow}
|
||||
onPress={() => router.back()}
|
||||
onPress={() => path ? router.replace(path) : router.back()}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export default BackButton;
|
||||
export default LeftButtonCustom;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Alert
|
||||
import AlertCustom from "./Alert/AlertCustom";
|
||||
// Button
|
||||
import BackButton from "./Button/BackButton";
|
||||
import LeftButtonCustom from "./Button/BackButton";
|
||||
import ButtonCustom from "./Button/ButtonCustom";
|
||||
// Drawer
|
||||
import DrawerCustom from "./Drawer/DrawerCustom";
|
||||
import MenuDrawerDynamicGrid from "./Drawer/MenuDrawerDynamicGird";
|
||||
// ShareComponent
|
||||
import ViewWrapper from "./_ShareComponent/ViewWrapper";
|
||||
import Spacing from "./_ShareComponent/Spacing";
|
||||
import ViewWrapper from "./_ShareComponent/ViewWrapper";
|
||||
// Text
|
||||
import TextCustom from "./Text/TextCustom";
|
||||
// TextInput
|
||||
@@ -18,7 +18,7 @@ import Grid from "./Grid/GridCustom";
|
||||
// Box
|
||||
import BaseBox from "./Box/BaseBox";
|
||||
// Avatar
|
||||
import AvatarCustom from "./Image/AvatarCustom"
|
||||
import AvatarCustom from "./Image/AvatarCustom";
|
||||
// Stack
|
||||
import StackCustom from "./Stack/StackCustom";
|
||||
// Select
|
||||
@@ -26,27 +26,25 @@ import SelectCustom from "./Select/SelectCustom";
|
||||
|
||||
export {
|
||||
AlertCustom,
|
||||
// Avatar
|
||||
AvatarCustom,
|
||||
// Button
|
||||
BackButton,
|
||||
ButtonCustom,
|
||||
LeftButtonCustom as BackButton,
|
||||
// Box
|
||||
BaseBox, ButtonCustom,
|
||||
// Drawer
|
||||
DrawerCustom,
|
||||
MenuDrawerDynamicGrid,
|
||||
// Grid
|
||||
Grid, MenuDrawerDynamicGrid,
|
||||
// Select
|
||||
SelectCustom,
|
||||
// ShareComponent
|
||||
Spacing,
|
||||
ViewWrapper,
|
||||
// Stack
|
||||
StackCustom,
|
||||
// Text
|
||||
TextCustom,
|
||||
// TextInput
|
||||
TextInputCustom,
|
||||
// Grid
|
||||
Grid,
|
||||
// Box
|
||||
BaseBox,
|
||||
// Avatar
|
||||
AvatarCustom,
|
||||
// Stack
|
||||
StackCustom,
|
||||
// Select
|
||||
SelectCustom,
|
||||
TextInputCustom, ViewWrapper
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user