Update time ticket areas added to use translations
This commit is contained in:
@@ -42,7 +42,7 @@ export function EmployeeClockedInList({ currentEmployee, isRefresh }) {
|
||||
if(isRefresh){
|
||||
refetch();
|
||||
}
|
||||
console.log("useEffect: ", isRefresh);
|
||||
// console.log("useEffect: ", isRefresh);
|
||||
// setRefreshKey(isRefresh);
|
||||
|
||||
}, [isRefresh]);
|
||||
@@ -62,19 +62,16 @@ export function EmployeeClockedInList({ currentEmployee, isRefresh }) {
|
||||
if (error) return <ErrorDisplay errorMessage={error.message} />;
|
||||
|
||||
const onRefresh = async () => {
|
||||
console.info("EmployeeClockedInList, onRefresh.");
|
||||
// console.info("EmployeeClockedInList, onRefresh.");
|
||||
return refetch();
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<View style={{ flex: 1, flexGrow: 1 }}>
|
||||
{jobData ? (
|
||||
<View style={{ flex: 1 }}>
|
||||
<Text style={{ paddingLeft: 12, paddingTop: 14 }}>
|
||||
You are already clocked in to the following job(s):
|
||||
{t("employeeclockedinlist.labels.alreadyclockedon")}
|
||||
</Text>
|
||||
<FlatList
|
||||
data={jobData?.timetickets}
|
||||
|
||||
Reference in New Issue
Block a user