[Glitch] Change onboarding flow in web UI
Port 7a3dea385e to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
cedacd6435
commit
f441e3db4e
31 files changed
+1138
-1159
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import type { ApiSuggestionJSON } from 'flavours/glitch/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