Invesment
Add: - app/(application)/(user)/investment/[id]/(news)/ Fix: - app/(application)/(user)/investment/[id]/[status]/detail.tsx - screens/Invesment/BoxDetailDataSection.tsx Component Add: - Tambah icon : IconDocument, IconNews, IconPlus, IconProspectus, IconTrash ## No Issue
This commit is contained in:
25
components/_Icon/IconDocument.tsx
Normal file
25
components/_Icon/IconDocument.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import { FontAwesome6, MaterialIcons } from "@expo/vector-icons";
|
||||
import { ICON_SIZE_MEDIUM } from "@/constants/constans-value";
|
||||
import { MainColor } from "@/constants/color-palet";
|
||||
|
||||
export { IconDocument, IconDocumentEdit };
|
||||
|
||||
function IconDocument({ color, size }: { color?: string; size?: number }) {
|
||||
return (
|
||||
<FontAwesome6
|
||||
name="file-lines"
|
||||
size={size || ICON_SIZE_MEDIUM}
|
||||
color={color || MainColor.white}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function IconDocumentEdit({ color, size }: { color?: string; size?: number }) {
|
||||
return (
|
||||
<MaterialIcons
|
||||
name="edit-document"
|
||||
size={size || ICON_SIZE_MEDIUM}
|
||||
color={color || MainColor.white}
|
||||
/>
|
||||
);
|
||||
}
|
||||
15
components/_Icon/IconNews.tsx
Normal file
15
components/_Icon/IconNews.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { MainColor } from "@/constants/color-palet";
|
||||
import { ICON_SIZE_MEDIUM } from "@/constants/constans-value";
|
||||
import { MaterialIcons } from "@expo/vector-icons";
|
||||
|
||||
export { IconNews };
|
||||
|
||||
function IconNews({ color, size }: { color?: string; size?: number }) {
|
||||
return (
|
||||
<MaterialIcons
|
||||
name="newspaper"
|
||||
size={size || ICON_SIZE_MEDIUM}
|
||||
color={color || MainColor.white}
|
||||
/>
|
||||
);
|
||||
}
|
||||
15
components/_Icon/IconPlus.tsx
Normal file
15
components/_Icon/IconPlus.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { MainColor } from "@/constants/color-palet";
|
||||
import { ICON_SIZE_MEDIUM } from "@/constants/constans-value";
|
||||
import { Octicons } from "@expo/vector-icons";
|
||||
|
||||
export { IconPlus };
|
||||
|
||||
function IconPlus({ color, size }: { color?: string; size?: number }) {
|
||||
return (
|
||||
<Octicons
|
||||
name="plus-circle"
|
||||
size={size || ICON_SIZE_MEDIUM}
|
||||
color={color || MainColor.white}
|
||||
/>
|
||||
);
|
||||
}
|
||||
21
components/_Icon/IconProspectus.tsx
Normal file
21
components/_Icon/IconProspectus.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { MainColor } from "@/constants/color-palet";
|
||||
import { ICON_SIZE_MEDIUM } from "@/constants/constans-value";
|
||||
import { FontAwesome6, MaterialIcons } from "@expo/vector-icons";
|
||||
|
||||
export { IconProspectus , IconProspectusEdit};
|
||||
|
||||
function IconProspectus({ color, size }: { color?: string; size?: number }) {
|
||||
return (
|
||||
<FontAwesome6 name="file-contract" size={size || ICON_SIZE_MEDIUM} color={color || MainColor.white} />
|
||||
);
|
||||
}
|
||||
|
||||
function IconProspectusEdit({ color, size }: { color?: string; size?: number }) {
|
||||
return (
|
||||
<MaterialIcons
|
||||
name="edit-note"
|
||||
size={size || ICON_SIZE_MEDIUM}
|
||||
color={color || MainColor.white}
|
||||
/>
|
||||
);
|
||||
}
|
||||
15
components/_Icon/IconTrash.tsx
Normal file
15
components/_Icon/IconTrash.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { MainColor } from "@/constants/color-palet";
|
||||
import { ICON_SIZE_MEDIUM } from "@/constants/constans-value";
|
||||
import { Ionicons } from "@expo/vector-icons";
|
||||
|
||||
export { IconTrash };
|
||||
|
||||
function IconTrash({ color, size }: { color?: string; size?: number }) {
|
||||
return (
|
||||
<Ionicons
|
||||
name="trash"
|
||||
size={size || ICON_SIZE_MEDIUM}
|
||||
color={color || MainColor.white}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -4,6 +4,10 @@ import IconHistory from "./IconHistory";
|
||||
import IconHome from "./IconHome";
|
||||
import IconStatus from "./IconStatus";
|
||||
import IconArchive from "./IconArchive";
|
||||
import { IconProspectus, IconProspectusEdit } from "./IconProspectus";
|
||||
import { IconDocument, IconDocumentEdit } from "./IconDocument";
|
||||
import { IconNews } from "./IconNews";
|
||||
import { IconPlus } from "./IconPlus";
|
||||
|
||||
export {
|
||||
IconContribution,
|
||||
@@ -12,4 +16,14 @@ export {
|
||||
IconHome,
|
||||
IconStatus,
|
||||
IconArchive,
|
||||
// Prospectus
|
||||
IconProspectus,
|
||||
IconProspectusEdit,
|
||||
// Document
|
||||
IconDocument,
|
||||
IconDocumentEdit,
|
||||
// News
|
||||
IconNews,
|
||||
// Plus
|
||||
IconPlus,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user