Merge pull request 'amalia/12-agustus-25' (#22) from amalia/12-agustus-25 into join
Reviewed-on: bip/mobile-darmasaba#22
This commit is contained in:
@@ -146,7 +146,6 @@ export default function DetailDiscussionGeneral() {
|
|||||||
:
|
:
|
||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
descEllipsize={false}
|
descEllipsize={false}
|
||||||
width={55}
|
|
||||||
borderType="bottom"
|
borderType="bottom"
|
||||||
icon={
|
icon={
|
||||||
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
||||||
@@ -183,7 +182,6 @@ export default function DetailDiscussionGeneral() {
|
|||||||
return (
|
return (
|
||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
key={i}
|
key={i}
|
||||||
width={55}
|
|
||||||
borderType="bottom"
|
borderType="bottom"
|
||||||
icon={
|
icon={
|
||||||
<ImageUser src={`https://wibu-storage.wibudev.com/api/files/${item.img}`} size="xs" />
|
<ImageUser src={`https://wibu-storage.wibudev.com/api/files/${item.img}`} size="xs" />
|
||||||
|
|||||||
@@ -217,7 +217,6 @@ export default function DiscussionDetail() {
|
|||||||
:
|
:
|
||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
descEllipsize={false}
|
descEllipsize={false}
|
||||||
width={55}
|
|
||||||
borderType="bottom"
|
borderType="bottom"
|
||||||
icon={
|
icon={
|
||||||
<ImageUser
|
<ImageUser
|
||||||
@@ -265,7 +264,6 @@ export default function DiscussionDetail() {
|
|||||||
dataComment.map((item, index) => (
|
dataComment.map((item, index) => (
|
||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
key={index}
|
key={index}
|
||||||
width={55}
|
|
||||||
borderType="bottom"
|
borderType="bottom"
|
||||||
icon={
|
icon={
|
||||||
<ImageUser
|
<ImageUser
|
||||||
|
|||||||
@@ -138,7 +138,6 @@ export default function DiscussionDivision() {
|
|||||||
return (
|
return (
|
||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
key={index}
|
key={index}
|
||||||
width={55}
|
|
||||||
onPress={() => { router.push(`./discussion/${item.id}`) }}
|
onPress={() => { router.push(`./discussion/${item.id}`) }}
|
||||||
borderType="bottom"
|
borderType="bottom"
|
||||||
icon={
|
icon={
|
||||||
@@ -174,7 +173,6 @@ export default function DiscussionDivision() {
|
|||||||
// data.map((item, index) => (
|
// data.map((item, index) => (
|
||||||
// <BorderBottomItem
|
// <BorderBottomItem
|
||||||
// key={index}
|
// key={index}
|
||||||
// width={55}
|
|
||||||
// onPress={() => { router.push(`./discussion/${item.id}`) }}
|
// onPress={() => { router.push(`./discussion/${item.id}`) }}
|
||||||
// borderType="bottom"
|
// borderType="bottom"
|
||||||
// icon={
|
// icon={
|
||||||
|
|||||||
@@ -184,7 +184,6 @@ export default function InformationDivision() {
|
|||||||
dataMember.map((item, index) => {
|
dataMember.map((item, index) => {
|
||||||
return (
|
return (
|
||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
width={55}
|
|
||||||
key={index}
|
key={index}
|
||||||
borderType="bottom"
|
borderType="bottom"
|
||||||
onPress={() => { dataDetail?.isActive && handleChooseMember(item) }}
|
onPress={() => { dataDetail?.isActive && handleChooseMember(item) }}
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ export default function Notification() {
|
|||||||
return (
|
return (
|
||||||
<BorderBottomItem
|
<BorderBottomItem
|
||||||
borderType="bottom"
|
borderType="bottom"
|
||||||
width={55}
|
|
||||||
icon={
|
icon={
|
||||||
<View style={[Styles.iconContent, item.isRead ? ColorsStatus.secondary : ColorsStatus.primary]}>
|
<View style={[Styles.iconContent, item.isRead ? ColorsStatus.secondary : ColorsStatus.primary]}>
|
||||||
<Feather name="bell" size={25} color="white" />
|
<Feather name="bell" size={25} color="white" />
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ export default function EditProject() {
|
|||||||
setJudul(val)
|
setJudul(val)
|
||||||
if (val == "" || val == "null") {
|
if (val == "" || val == "null") {
|
||||||
setError(true)
|
setError(true)
|
||||||
|
}else{
|
||||||
|
setError(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export default function BorderBottomItem({ title, subtitle, icon, desc, onPress,
|
|||||||
<View style={[Styles.rowItemsCenter]}>
|
<View style={[Styles.rowItemsCenter]}>
|
||||||
{icon}
|
{icon}
|
||||||
<View style={[Styles.rowSpaceBetween, width ? { width: lebar } : { width: '88%' }]}>
|
<View style={[Styles.rowSpaceBetween, width ? { width: lebar } : { width: '88%' }]}>
|
||||||
<View style={[Styles.ml10, rightTopInfo ? { width: lebar } : { width: '90%' },]}>
|
<View style={[Styles.ml10, rightTopInfo ? { width: '70%' } : { width: '90%' }]}>
|
||||||
<Text style={[titleWeight == 'normal' ? Styles.textDefault : Styles.textDefaultSemiBold, { color: textColorFix }]} numberOfLines={1} ellipsizeMode='tail'>{title}</Text>
|
<Text style={[titleWeight == 'normal' ? Styles.textDefault : Styles.textDefaultSemiBold, { color: textColorFix }]} numberOfLines={1} ellipsizeMode='tail'>{title}</Text>
|
||||||
{
|
{
|
||||||
subtitle &&
|
subtitle &&
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ import Styles from "@/constants/Styles";
|
|||||||
import { apiGetDivisionOneFeature } from "@/lib/api";
|
import { apiGetDivisionOneFeature } from "@/lib/api";
|
||||||
import { useAuthSession } from "@/providers/AuthProvider";
|
import { useAuthSession } from "@/providers/AuthProvider";
|
||||||
import { Feather } from "@expo/vector-icons";
|
import { Feather } from "@expo/vector-icons";
|
||||||
import { useLocalSearchParams } from "expo-router";
|
import { router, useLocalSearchParams } from "expo-router";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { Dimensions, View } from "react-native";
|
import { Dimensions, Pressable, View } from "react-native";
|
||||||
import Text from "../Text";
|
import { ICarouselInstance } from "react-native-reanimated-carousel";
|
||||||
import Carousel, { ICarouselInstance } from "react-native-reanimated-carousel";
|
|
||||||
import Skeleton from "../skeleton";
|
import Skeleton from "../skeleton";
|
||||||
|
import Text from "../Text";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
id: string
|
id: string
|
||||||
@@ -46,34 +46,42 @@ export default function TaskDivisionDetail() {
|
|||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
<Text style={[Styles.textDefaultSemiBold, Styles.mb05]}>Tugas Hari Ini</Text>
|
<Text style={[Styles.textDefaultSemiBold, Styles.mb05]}>Tugas Hari Ini</Text>
|
||||||
|
|
||||||
{
|
{
|
||||||
loading ?
|
loading ?
|
||||||
<Skeleton width={100} widthType="percent" height={60} borderRadius={10} />
|
<Skeleton width={100} widthType="percent" height={60} borderRadius={10} />
|
||||||
:
|
:
|
||||||
data.length > 0 ?
|
data.length > 0 ?
|
||||||
<Carousel
|
data.map((item, index) => (
|
||||||
ref={ref}
|
<Pressable key={index} style={[Styles.wrapPaper]} onPress={() => { router.push(`/division/${id}/task/${item.idProject}`) }}>
|
||||||
style={{ width: "100%" }}
|
<Text style={[Styles.textDefaultSemiBold]} numberOfLines={1} ellipsizeMode="tail">{item.title} - {item.projectTitle}</Text>
|
||||||
width={width * 0.8}
|
|
||||||
height={100}
|
|
||||||
data={data}
|
|
||||||
loop={true}
|
|
||||||
autoPlay={false}
|
|
||||||
autoPlayReverse={false}
|
|
||||||
pagingEnabled={true}
|
|
||||||
snapEnabled={true}
|
|
||||||
vertical={false}
|
|
||||||
renderItem={({ index }) => (
|
|
||||||
<View style={[Styles.wrapPaper, { width: '95%' }]}>
|
|
||||||
<Text style={[Styles.textDefaultSemiBold]} numberOfLines={1} ellipsizeMode="tail">{data[index].title} - {data[index].projectTitle}</Text>
|
|
||||||
<View style={[Styles.rowItemsCenter, Styles.mt10]}>
|
<View style={[Styles.rowItemsCenter, Styles.mt10]}>
|
||||||
<Feather name="clock" size={18} color="grey" style={Styles.mr05} />
|
<Feather name="clock" size={18} color="grey" style={Styles.mr05} />
|
||||||
<Text style={[Styles.textInformation]} numberOfLines={1} ellipsizeMode="tail">{data[index].dateStart} - {data[index].dateEnd}</Text>
|
<Text style={[Styles.textInformation]} numberOfLines={1} ellipsizeMode="tail">{item.dateStart} - {item.dateEnd}</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</Pressable>
|
||||||
)}
|
))
|
||||||
/>
|
// <Carousel
|
||||||
|
// ref={ref}
|
||||||
|
// style={{ width: "100%" }}
|
||||||
|
// width={width * 0.8}
|
||||||
|
// height={100}
|
||||||
|
// data={data}
|
||||||
|
// loop={true}
|
||||||
|
// autoPlay={false}
|
||||||
|
// autoPlayReverse={false}
|
||||||
|
// pagingEnabled={true}
|
||||||
|
// snapEnabled={true}
|
||||||
|
// vertical={false}
|
||||||
|
// renderItem={({ index }) => (
|
||||||
|
// <View style={[Styles.wrapPaper, { width: '95%' }]}>
|
||||||
|
// <Text style={[Styles.textDefaultSemiBold]} numberOfLines={1} ellipsizeMode="tail">{data[index].title} - {data[index].projectTitle}</Text>
|
||||||
|
// <View style={[Styles.rowItemsCenter, Styles.mt10]}>
|
||||||
|
// <Feather name="clock" size={18} color="grey" style={Styles.mr05} />
|
||||||
|
// <Text style={[Styles.textInformation]} numberOfLines={1} ellipsizeMode="tail">{data[index].dateStart} - {data[index].dateEnd}</Text>
|
||||||
|
// </View>
|
||||||
|
// </View>
|
||||||
|
// )}
|
||||||
|
// />
|
||||||
:
|
:
|
||||||
<Text style={[Styles.textDefault, Styles.cGray, { textAlign: 'center' }]}>Tidak ada tugas</Text>
|
<Text style={[Styles.textDefault, Styles.cGray, { textAlign: 'center' }]}>Tidak ada tugas</Text>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,9 @@ export default function ModalLoading({ isVisible, setVisible }: Props) {
|
|||||||
animationOut={"slideOutDown"}
|
animationOut={"slideOutDown"}
|
||||||
isVisible={isVisible}
|
isVisible={isVisible}
|
||||||
hideModalContentWhileAnimating={true}
|
hideModalContentWhileAnimating={true}
|
||||||
onBackdropPress={() => { setVisible(false) }}
|
onBackdropPress={() => {
|
||||||
|
// setVisible(false)
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<ActivityIndicator size="large" />
|
<ActivityIndicator size="large" />
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user