upd: tampilan
Deskripsi: - list diskusi pda dashboard dan detail divisi home - ukuran banner dan stretch - detail anggota > nama - detail diskusi umum > judul kepotong - detail pengumuman > deskripsi tidak keliatan warna putih No Issues
This commit is contained in:
@@ -117,6 +117,7 @@ export default function DetailAnnouncement() {
|
|||||||
<RenderHTML
|
<RenderHTML
|
||||||
contentWidth={contentWidth}
|
contentWidth={contentWidth}
|
||||||
source={{ html: data?.desc }}
|
source={{ html: data?.desc }}
|
||||||
|
baseStyle={{ color: 'black' }}
|
||||||
/>
|
/>
|
||||||
:
|
:
|
||||||
<Text>{data?.desc}</Text>
|
<Text>{data?.desc}</Text>
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ export default function EditBanner() {
|
|||||||
>
|
>
|
||||||
<Entypo name="image" size={50} color={"#aeaeae"} />
|
<Entypo name="image" size={50} color={"#aeaeae"} />
|
||||||
<Text style={[Styles.textInformation, Styles.mt05]}>
|
<Text style={[Styles.textInformation, Styles.mt05]}>
|
||||||
Mohon unggah gambar dalam resolusi 1535 x 450 piksel untuk
|
Mohon unggah gambar dalam resolusi 1650 x 720 pixel untuk
|
||||||
memastikan
|
memastikan
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ export default function CreateBanner() {
|
|||||||
>
|
>
|
||||||
<Entypo name="image" size={50} color={"#aeaeae"} />
|
<Entypo name="image" size={50} color={"#aeaeae"} />
|
||||||
<Text style={[Styles.textInformation, Styles.mt05]}>
|
<Text style={[Styles.textInformation, Styles.mt05]}>
|
||||||
Mohon unggah gambar dalam resolusi 1535 x 450 pixel untuk
|
Mohon unggah gambar dalam resolusi 1650 x 720 pixel untuk
|
||||||
memastikan
|
memastikan
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -222,7 +222,8 @@ export default function DetailDiscussionGeneral() {
|
|||||||
<MaterialIcons name="chat" size={25} color={'#384288'} />
|
<MaterialIcons name="chat" size={25} color={'#384288'} />
|
||||||
</View>
|
</View>
|
||||||
}
|
}
|
||||||
title={data?.title + " " + data?.createdAt}
|
title={data?.title}
|
||||||
|
titleShowAll={true}
|
||||||
subtitle={
|
subtitle={
|
||||||
!data?.isActive ?
|
!data?.isActive ?
|
||||||
<LabelStatus category='warning' text='ARSIP' size="small" />
|
<LabelStatus category='warning' text='ARSIP' size="small" />
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import { apiGetProfile } from "@/lib/api";
|
|||||||
import { router, Stack, useLocalSearchParams } from "expo-router";
|
import { router, Stack, useLocalSearchParams } from "expo-router";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { RefreshControl, SafeAreaView, ScrollView, View } from "react-native";
|
import { RefreshControl, SafeAreaView, ScrollView, View } from "react-native";
|
||||||
|
import Toast from "react-native-toast-message";
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -42,10 +43,15 @@ export default function MemberDetail() {
|
|||||||
try {
|
try {
|
||||||
setLoading(loading)
|
setLoading(loading)
|
||||||
const response = await apiGetProfile({ id: id })
|
const response = await apiGetProfile({ id: id })
|
||||||
setData(response.data)
|
if (response.success) {
|
||||||
setEdit(valueRoleUser.filter((v) => v.login == entityUser.role)[0]?.data.some((i: any) => i.id == response.data.idUserRole))
|
setData(response.data)
|
||||||
|
setEdit(valueRoleUser.filter((v) => v.login == entityUser.role)[0]?.data.some((i: any) => i.id == response.data.idUserRole))
|
||||||
|
} else {
|
||||||
|
Toast.show({ type: 'small', text1: response.message })
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
Toast.show({ type: 'small', text1: 'Gagal mengambil data' })
|
||||||
} finally {
|
} finally {
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
}
|
}
|
||||||
@@ -84,7 +90,7 @@ export default function MemberDetail() {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<View style={[Styles.wrapHeadViewMember,]}>
|
<View style={[Styles.wrapHeadViewMember]}>
|
||||||
{
|
{
|
||||||
loading ?
|
loading ?
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -21,9 +21,10 @@ type Props = {
|
|||||||
descEllipsize?: boolean
|
descEllipsize?: boolean
|
||||||
textColor?: string,
|
textColor?: string,
|
||||||
colorPress?: boolean
|
colorPress?: boolean
|
||||||
|
titleShowAll?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function BorderBottomItem({ title, subtitle, icon, desc, onPress, onLongPress, rightTopInfo, borderType, leftBottomInfo, rightBottomInfo, titleWeight, bgColor, width, descEllipsize, textColor, colorPress }: Props) {
|
export default function BorderBottomItem({ title, subtitle, icon, desc, onPress, onLongPress, rightTopInfo, borderType, leftBottomInfo, rightBottomInfo, titleWeight, bgColor, width, descEllipsize, textColor, colorPress, titleShowAll }: Props) {
|
||||||
const lebarDim = Dimensions.get("window").width;
|
const lebarDim = Dimensions.get("window").width;
|
||||||
const lebar = width ? lebarDim * width / 100 : 'auto';
|
const lebar = width ? lebarDim * width / 100 : 'auto';
|
||||||
const textColorFix = textColor ? textColor : 'black';
|
const textColorFix = textColor ? textColor : 'black';
|
||||||
@@ -49,7 +50,7 @@ export default function BorderBottomItem({ title, subtitle, icon, desc, onPress,
|
|||||||
{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: '70%' } : { 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={titleShowAll ? 0 : 1} ellipsizeMode='tail'>{title}</Text>
|
||||||
{
|
{
|
||||||
subtitle &&
|
subtitle &&
|
||||||
typeof subtitle == "string"
|
typeof subtitle == "string"
|
||||||
|
|||||||
@@ -15,16 +15,16 @@ export default function DiscussionItem({ title, user, date, onPress }: Props) {
|
|||||||
<Pressable style={[Styles.wrapItemDiscussion]} onPress={onPress}>
|
<Pressable style={[Styles.wrapItemDiscussion]} onPress={onPress}>
|
||||||
<View style={[Styles.rowItemsCenter, Styles.mb10]}>
|
<View style={[Styles.rowItemsCenter, Styles.mb10]}>
|
||||||
<Ionicons name="chatbox-ellipses-outline" size={22} color="black" style={Styles.mr10} />
|
<Ionicons name="chatbox-ellipses-outline" size={22} color="black" style={Styles.mr10} />
|
||||||
<View style={[{flex:1}]}>
|
<View style={[{ flex: 1 }]}>
|
||||||
<Text style={{ fontWeight: 'bold' }} numberOfLines={1} ellipsizeMode="tail">{title}</Text>
|
<Text style={{ fontWeight: 'bold' }} numberOfLines={1} ellipsizeMode="tail">{title}</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View style={Styles.rowSpaceBetween}>
|
<View style={[Styles.rowSpaceBetween]}>
|
||||||
<View style={Styles.rowItemsCenter}>
|
<View style={[Styles.rowItemsCenter, { flex: 1 }]}>
|
||||||
<Feather name="user" size={18} color="grey" style={Styles.mr05} />
|
<Feather name="user" size={18} color="grey" style={Styles.mr05} />
|
||||||
<Text style={[Styles.textInformation]}>{user}</Text>
|
<Text style={[Styles.textInformation]} numberOfLines={1} ellipsizeMode="tail">{user}</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={Styles.rowItemsCenter}>
|
<View style={[Styles.rowItemsCenter, { flex: 1, justifyContent: 'flex-end' }]}>
|
||||||
<Feather name="clock" size={18} color="grey" style={Styles.mr05} />
|
<Feather name="clock" size={18} color="grey" style={Styles.mr05} />
|
||||||
<Text style={[Styles.textInformation]}>{date}</Text>
|
<Text style={[Styles.textInformation]}>{date}</Text>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -343,7 +343,9 @@ const Styles = StyleSheet.create({
|
|||||||
borderRadius: 15,
|
borderRadius: 15,
|
||||||
backgroundColor: '#19345E',
|
backgroundColor: '#19345E',
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
width: '92%'
|
width: '92%',
|
||||||
|
resizeMode: 'stretch',
|
||||||
|
overflow: 'hidden',
|
||||||
},
|
},
|
||||||
wrapGridContent: {
|
wrapGridContent: {
|
||||||
shadowColor: '#171717',
|
shadowColor: '#171717',
|
||||||
@@ -473,6 +475,7 @@ const Styles = StyleSheet.create({
|
|||||||
wrapHeadViewMember: {
|
wrapHeadViewMember: {
|
||||||
backgroundColor: '#19345E',
|
backgroundColor: '#19345E',
|
||||||
paddingVertical: 30,
|
paddingVertical: 30,
|
||||||
|
paddingHorizontal: 15,
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
borderBottomLeftRadius: 25,
|
borderBottomLeftRadius: 25,
|
||||||
borderBottomRightRadius: 25
|
borderBottomRightRadius: 25
|
||||||
|
|||||||
Reference in New Issue
Block a user