Basic job details.

This commit is contained in:
Patrick Fic
2025-10-08 15:30:17 -07:00
parent 00626328c4
commit 83993be284
10 changed files with 308 additions and 211 deletions

View File

@@ -1,24 +0,0 @@
import { DateTime } from "luxon";
import React from "react";
import { Text, View } from "react-native";
export default function DataLabelComponent({
label,
content,
dateTime,
...restProps
}) {
let theContent = content;
if (dateTime && content)
theContent = DateTime.fromISO(content).toLocaleString(
DateTime.DATETIME_SHORT
);
const { key, ...rest } = restProps;
return (
<View key={key} {...rest} style={{ margin: 4, ...restProps.style }}>
<Text style={{ color: "slategray" }}>{label}</Text>
<Text>{theContent}</Text>
</View>
);
}

View File

@@ -1,4 +1,3 @@
import React from "react";
import { useTranslation } from "react-i18next";
import {
RefreshControl,
@@ -8,7 +7,7 @@ import {
View,
} from "react-native";
import { Card, Headline, Subheading } from "react-native-paper";
import DataLabelComponent from "../data-label/data-label.component";
import DataLabelComponent from "../../components/data-label/data-label";
import StyleRepeater from "../style-repeater/style-repeater";
import styles from "../styles";