sửa l fix xcall api getTrip
This commit is contained in:
@@ -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:**
|
||||
|
||||
Reference in New Issue
Block a user