[Glitch] Add default post text to onboarding flow in web UI

Port 8979b70975 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko
2023-04-28 10:05:34 +02:00
committed by Claire
parent e0b401e295
commit 542f2fb1e0
3 changed files with 10 additions and 7 deletions

View File

@@ -145,9 +145,10 @@ export function resetCompose() {
};
}
export const focusCompose = routerHistory => dispatch => {
export const focusCompose = (routerHistory, defaultText) => dispatch => {
dispatch({
type: COMPOSE_FOCUS,
defaultText,
});
ensureComposeIsVisible(routerHistory);