0
0
Fork 0

Change onboarding flow in web UI (#32998)

This commit is contained in:
Eugen Rochko 2024-11-26 17:10:12 +01:00 committed by GitHub
parent 429e08e3d2
commit 7a3dea385e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 1142 additions and 1183 deletions

View file

@ -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}`);