[Glitch] Change onboarding flow in web UI

Port 7a3dea385e to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko
2024-11-26 17:10:12 +01:00
committed by Claire
parent cedacd6435
commit f441e3db4e
31 changed files with 1138 additions and 1159 deletions

View File

@@ -0,0 +1,8 @@
import { apiRequestGet, apiRequestDelete } from 'flavours/glitch/api';
import type { ApiSuggestionJSON } from 'flavours/glitch/api_types/suggestions';
export const apiGetSuggestions = (limit: number) =>
apiRequestGet<ApiSuggestionJSON[]>('v2/suggestions', { limit });
export const apiDeleteSuggestion = (accountId: string) =>
apiRequestDelete(`v1/suggestions/${accountId}`);