Change onboarding flow in web UI (#32998)
This commit is contained in:
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,
|
||||
});
|
||||
Reference in new issue
Block a user