Added loading of documents thumbnails
This commit is contained in:
@@ -7,7 +7,7 @@ import { TouchableOpacity } from "react-native-gesture-handler";
|
||||
import Swipeable from "react-native-gesture-handler/Swipeable";
|
||||
import styles from "../styles";
|
||||
import { AntDesign } from "@expo/vector-icons";
|
||||
|
||||
import { DateTime } from "luxon";
|
||||
export default function NoteListItem({ item }) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
@@ -40,7 +40,11 @@ export default function NoteListItem({ item }) {
|
||||
color="tomato"
|
||||
/>
|
||||
)}
|
||||
<Text style={{ fontSize: 12 }}>{item.created_at}</Text>
|
||||
<Text style={{ fontSize: 12 }}>
|
||||
{DateTime.fromISO(item.created_at).toLocaleString(
|
||||
DateTime.DATETIME_SHORT
|
||||
)}
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</CardItem>
|
||||
|
||||
Reference in New Issue
Block a user