Fix Loaddata Voting
Voting – User - app/(application)/(user)/voting/(tabs)/status.tsx - app/(application)/(user)/voting/create.tsx Screens – Voting - screens/Voting/ButtonStatusSection.tsx API Client - service/api-client/api-voting.ts Global - app/+not-found.tsx - styles/global-styles.ts Docs - docs/prompt-for-qwen-code.md Untracked (New Files) - screens/Voting/ScreenStatus.tsx ### No issue
This commit is contained in:
@@ -14,12 +14,14 @@ export async function apiVotingCreate(data: any) {
|
||||
export async function apiVotingGetByStatus({
|
||||
id,
|
||||
status,
|
||||
page = "1",
|
||||
}: {
|
||||
id: string;
|
||||
status: string;
|
||||
page?: string;
|
||||
}) {
|
||||
try {
|
||||
const response = await apiConfig.get(`/mobile/voting/${id}/${status}`);
|
||||
const response = await apiConfig.get(`/mobile/voting/${id}/${status}?page=${page}`);
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user