Change onboarding flow in web UI (#32998)

This commit is contained in:
Eugen Rochko
2024-11-26 16:10:12 +00:00
committed by GitHub
parent 429e08e3d2
commit 7a3dea385e
32 changed files with 1142 additions and 1183 deletions
@@ -0,0 +1,8 @@
import { apiRequestGet, apiRequestDelete } from 'mastodon/api';
import type { ApiSuggestionJSON } from 'mastodon/api_types/suggestions';
export const apiGetSuggestions = (limit: number) =>
apiRequestGet<ApiSuggestionJSON[]>('v2/suggestions', { limit });
export const apiDeleteSuggestion = (accountId: string) =>
apiRequestDelete(`v1/suggestions/${accountId}`);