Change onboarding flow in web UI (#32998)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2024-11-26 16:10:12 +00:00
1 parent 429e08e3d2
commit 7a3dea385e
32 files changed
+1142 -1183

No files matched your search

@@ -0,0 +1,12 @@
import type { ApiSuggestionJSON } from 'mastodon/api_types/suggestions';
export interface Suggestion extends Omit<ApiSuggestionJSON, 'account'> {
account_id: string;
}
export const createSuggestion = (
serverJSON: ApiSuggestionJSON,
): Suggestion => ({
sources: serverJSON.sources,
account_id: serverJSON.account.id,
});