sửa l fix xcall api getTrip

This commit is contained in:
Tran Anh Tuan
2025-11-06 17:45:03 +07:00
parent aabd1109b2
commit 1b748285c9
5 changed files with 29 additions and 33 deletions

View File

@@ -247,7 +247,7 @@ export async function login(body: Model.LoginRequestBody) {
```typescript
export async function fetchGpsData() {
return api.get<Model.GPSResonse>(API_GET_GPS);
return api.get<Model.GPSResponse>(API_GET_GPS);
}
```
@@ -388,7 +388,7 @@ export default function TabLayout() {
1. **State management:**
```typescript
const [gpsData, setGpsData] = useState<Model.GPSResonse | null>(null);
const [gpsData, setGpsData] = useState<Model.GPSResponse | null>(null);
```
2. **Fetch GPS data:**