Remove unused imports and components.
This commit is contained in:
+2
-5
@@ -24,13 +24,10 @@ export default function LoginScreen() {
|
||||
setIsLoading(true);
|
||||
|
||||
try {
|
||||
username.trim();
|
||||
password.trim();
|
||||
|
||||
// Execute login request
|
||||
const response = await api.post("/user/login", {
|
||||
username: username,
|
||||
password: password
|
||||
username: username.trim(),
|
||||
password: password.trim()
|
||||
});
|
||||
|
||||
if (response.data && response.data.success === false) {
|
||||
|
||||
@@ -82,10 +82,6 @@ export default function CalendarWidget({ events, types, onMonthChange, initialDa
|
||||
const day = i + 1;
|
||||
const event = getEventForDay(day);
|
||||
|
||||
let bgClass = 'bg-transparent';
|
||||
let textClass = 'text-gray-700';
|
||||
let borderClass = 'border-transparent';
|
||||
|
||||
const bgColor = event?.timeOffRequestType?.color ? `${event.timeOffRequestType.color}25` : 'transparent';
|
||||
const borderColor = event?.timeOffRequestType?.color || 'transparent';
|
||||
const textColor = event ? event.timeOffRequestType?.color : '#374151';
|
||||
|
||||
@@ -89,7 +89,7 @@ export default function MachineFilter({ selectedMachineId, onMachineSelect, text
|
||||
)}
|
||||
</View>
|
||||
|
||||
{/* Nested Place Picker Modal */}
|
||||
{/* Nested Machine Picker Modal */}
|
||||
<Modal visible={showPicker} transparent={true} animationType="fade" onRequestClose={() => setShowPicker(false)}>
|
||||
<TouchableOpacity
|
||||
activeOpacity={1}
|
||||
|
||||
@@ -96,7 +96,7 @@ export default function SupplierFilter({ selectedSupplierId, onSupplierSelect, t
|
||||
)}
|
||||
</View>
|
||||
|
||||
{/* Nested Place Picker Modal */}
|
||||
{/* Nested Supplier Picker Modal */}
|
||||
<Modal visible={showPicker} transparent={true} animationType="fade" onRequestClose={() => setShowPicker(false)}>
|
||||
<TouchableOpacity
|
||||
activeOpacity={1}
|
||||
|
||||
+2
-11
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ipcostruzioni_app",
|
||||
"main": "expo-router/entry",
|
||||
"version": "1.7.0",
|
||||
"version": "1.7",
|
||||
"scripts": {
|
||||
"start": "expo start",
|
||||
"reset-project": "node ./scripts/reset-project.js",
|
||||
@@ -61,14 +61,5 @@
|
||||
"eslint-config-expo": "~10.0.0",
|
||||
"typescript": "~5.9.2"
|
||||
},
|
||||
"private": true,
|
||||
"expo": {
|
||||
"doctor": {
|
||||
"reactNativeDirectoryCheck": {
|
||||
"exclude": [
|
||||
"react-native-nfc-manager"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
"private": true
|
||||
}
|
||||
|
||||
@@ -16,14 +16,6 @@ export interface AttendanceRecord {
|
||||
out: string | null;
|
||||
}
|
||||
|
||||
export interface DocumentItem {
|
||||
id: number;
|
||||
mimetype: string;
|
||||
filename: string;
|
||||
url: string;
|
||||
date: string;
|
||||
}
|
||||
|
||||
export interface TimeOffRequestType {
|
||||
id: number;
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user