Deskripsi; - ui tambah diskusi - ui edit diskusi - ui detail diskusi - ui list anggota diskusi - ui tutup diskusi - ui arsip diskusi No Issues
154 lines
7.5 KiB
TypeScript
154 lines
7.5 KiB
TypeScript
import BorderBottomItem from "@/components/borderBottomItem";
|
|
import ButtonTab from "@/components/buttonTab";
|
|
import InputSearch from "@/components/inputSearch";
|
|
import LabelStatus from "@/components/labelStatus";
|
|
import { ColorsStatus } from "@/constants/ColorsStatus";
|
|
import Styles from "@/constants/Styles";
|
|
import { AntDesign, Feather, Ionicons, MaterialCommunityIcons, MaterialIcons } from "@expo/vector-icons";
|
|
import { router, useLocalSearchParams } from "expo-router";
|
|
import { SafeAreaView, ScrollView, Text, View } from "react-native";
|
|
|
|
export default function Discussion() {
|
|
const { active } = useLocalSearchParams<{ active?: string }>()
|
|
|
|
return (
|
|
<SafeAreaView>
|
|
<ScrollView>
|
|
<View style={[Styles.p15, Styles.mb100]}>
|
|
<View style={[Styles.wrapBtnTab]}>
|
|
<ButtonTab
|
|
active={active == "false" ? "false" : "true"}
|
|
value="true"
|
|
onPress={() => { router.push('/discussion?active=true') }}
|
|
label="Aktif"
|
|
icon={<Feather name="check-circle" color={active == "false" ? 'black' : 'white'} size={20} />}
|
|
n={2} />
|
|
<ButtonTab
|
|
active={active == "false" ? "false" : "true"}
|
|
value="false"
|
|
onPress={() => { router.push('/discussion?active=false') }}
|
|
label="Arsip"
|
|
icon={<AntDesign name="closecircleo" color={active == "true" ? 'black' : 'white'} size={20} />}
|
|
n={2} />
|
|
</View>
|
|
<InputSearch />
|
|
<View style={[Styles.mv05]}>
|
|
<Text>Filter : Dinas</Text>
|
|
</View>
|
|
<View>
|
|
<BorderBottomItem
|
|
onPress={() => { router.push('/discussion/1') }}
|
|
borderType="bottom"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialIcons name="chat" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="Danantara"
|
|
subtitle={
|
|
<LabelStatus category='success' text='BUKA' size="small" />
|
|
}
|
|
rightTopInfo="3 Jan 2025"
|
|
desc="Bagaimana dampak yg dirasakan akibat efisiensi?"
|
|
leftBottomInfo={
|
|
<View style={[Styles.rowItemsCenter]}>
|
|
<Ionicons name="chatbox-ellipses-outline" size={18} color="grey" style={Styles.mr05} />
|
|
<Text style={[Styles.textInformation, Styles.cGray, Styles.mb05]}>Diskusikan</Text>
|
|
</View>
|
|
}
|
|
rightBottomInfo='15 Komentar'
|
|
/>
|
|
<BorderBottomItem
|
|
onPress={() => { router.push('/discussion/1') }}
|
|
borderType="bottom"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialIcons name="chat" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="Danantara"
|
|
subtitle={
|
|
<LabelStatus category='success' text='BUKA' size="small" />
|
|
}
|
|
rightTopInfo="3 Jan 2025"
|
|
desc="Bagaimana dampak yg dirasakan akibat efisiensi?"
|
|
leftBottomInfo={
|
|
<View style={[Styles.rowItemsCenter]}>
|
|
<Ionicons name="chatbox-ellipses-outline" size={18} color="grey" style={Styles.mr05} />
|
|
<Text style={[Styles.textInformation, Styles.cGray, Styles.mb05]}>Diskusikan</Text>
|
|
</View>
|
|
}
|
|
rightBottomInfo='15 Komentar'
|
|
/>
|
|
<BorderBottomItem
|
|
onPress={() => { router.push('/discussion/1') }}
|
|
borderType="bottom"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialIcons name="chat" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="Danantara"
|
|
subtitle={
|
|
<LabelStatus category='success' text='BUKA' size="small" />
|
|
}
|
|
rightTopInfo="3 Jan 2025"
|
|
desc="Bagaimana dampak yg dirasakan akibat efisiensi?"
|
|
leftBottomInfo={
|
|
<View style={[Styles.rowItemsCenter]}>
|
|
<Ionicons name="chatbox-ellipses-outline" size={18} color="grey" style={Styles.mr05} />
|
|
<Text style={[Styles.textInformation, Styles.cGray, Styles.mb05]}>Diskusikan</Text>
|
|
</View>
|
|
}
|
|
rightBottomInfo='15 Komentar'
|
|
/>
|
|
<BorderBottomItem
|
|
onPress={() => { router.push('/discussion/1') }}
|
|
borderType="bottom"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialIcons name="chat" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="Danantara"
|
|
subtitle={
|
|
<LabelStatus category='success' text='BUKA' size="small" />
|
|
}
|
|
rightTopInfo="3 Jan 2025"
|
|
desc="Bagaimana dampak yg dirasakan akibat efisiensi?"
|
|
leftBottomInfo={
|
|
<View style={[Styles.rowItemsCenter]}>
|
|
<Ionicons name="chatbox-ellipses-outline" size={18} color="grey" style={Styles.mr05} />
|
|
<Text style={[Styles.textInformation, Styles.cGray, Styles.mb05]}>Diskusikan</Text>
|
|
</View>
|
|
}
|
|
rightBottomInfo='15 Komentar'
|
|
/>
|
|
<BorderBottomItem
|
|
onPress={() => { router.push('/discussion/1') }}
|
|
borderType="bottom"
|
|
icon={
|
|
<View style={[Styles.iconContent, ColorsStatus.lightGreen]}>
|
|
<MaterialIcons name="chat" size={25} color={'#384288'} />
|
|
</View>
|
|
}
|
|
title="Danantara"
|
|
subtitle={
|
|
<LabelStatus category='success' text='BUKA' size="small" />
|
|
}
|
|
rightTopInfo="3 Jan 2025"
|
|
desc="Bagaimana dampak yg dirasakan akibat efisiensi?"
|
|
leftBottomInfo={
|
|
<View style={[Styles.rowItemsCenter]}>
|
|
<Ionicons name="chatbox-ellipses-outline" size={18} color="grey" style={Styles.mr05} />
|
|
<Text style={[Styles.textInformation, Styles.cGray, Styles.mb05]}>Diskusikan</Text>
|
|
</View>
|
|
}
|
|
rightBottomInfo='15 Komentar'
|
|
/>
|
|
</View>
|
|
</View>
|
|
</ScrollView>
|
|
</SafeAreaView>
|
|
);
|
|
} |