Change onboarding flow in web UI (#32998)
This commit is contained in:
parent
429e08e3d2
commit
7a3dea385e
32 changed files with 1142 additions and 1183 deletions
12
app/javascript/mastodon/models/suggestion.ts
Normal file
12
app/javascript/mastodon/models/suggestion.ts
Normal file
|
@ -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,
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue