upd: text input area
Deskripsi>; - update tambah dan edit deskripsi pengumuman - update tambah dan edit deskripsi divisi No Issues
This commit is contained in:
@@ -10,7 +10,7 @@ import { useAuthSession } from "@/providers/AuthProvider";
|
||||
import { Entypo } from "@expo/vector-icons";
|
||||
import { router, Stack } from "expo-router";
|
||||
import { useEffect, useState } from "react";
|
||||
import { SafeAreaView, ScrollView, Text, ToastAndroid, View } from "react-native";
|
||||
import { SafeAreaView, ScrollView, StyleSheet, Text, ToastAndroid, View } from "react-native";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
|
||||
export default function CreateAnnouncement() {
|
||||
@@ -123,6 +123,7 @@ export default function CreateAnnouncement() {
|
||||
error={error.desc}
|
||||
errorText="Pengumuman harus diisi"
|
||||
onChange={(val) => validationForm("desc", val)}
|
||||
multiline
|
||||
/>
|
||||
<ButtonSelect
|
||||
value="Pilih divisi penerima pengumuman"
|
||||
@@ -171,3 +172,16 @@ export default function CreateAnnouncement() {
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
padding: 20,
|
||||
},
|
||||
textArea: {
|
||||
height: 100, // Or use flex-based sizing
|
||||
borderColor: 'gray',
|
||||
borderWidth: 1,
|
||||
padding: 10,
|
||||
textAlignVertical: 'top', // Important for Android to align text at the top
|
||||
},
|
||||
});
|
||||
|
||||
@@ -168,6 +168,7 @@ export default function EditAnnouncement() {
|
||||
errorText="Pengumuman harus diisi"
|
||||
onChange={(val) => validationForm("desc", val)}
|
||||
value={dataForm.desc}
|
||||
multiline
|
||||
/>
|
||||
<ButtonSelect
|
||||
value="Pilih divisi penerima pengumuman"
|
||||
|
||||
@@ -106,6 +106,7 @@ export default function EditDivision() {
|
||||
onChange={(value) => {
|
||||
setData({ ...data, desc: value })
|
||||
}}
|
||||
multiline
|
||||
/>
|
||||
</View>
|
||||
</ScrollView>
|
||||
|
||||
@@ -118,6 +118,7 @@ export default function CreateDivision() {
|
||||
placeholder="Deskripsi Divisi"
|
||||
value={dataForm.desc}
|
||||
onChange={(val) => setDataForm({ ...dataForm, desc: val })}
|
||||
multiline
|
||||
/>
|
||||
</View>
|
||||
</ScrollView>
|
||||
|
||||
Reference in New Issue
Block a user