mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
[Glitch] Change order of onboarding steps
Port 51894ac247 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -121,7 +121,6 @@ export const Follows: React.FC<{
|
||||
icon='person'
|
||||
iconComponent={PersonIcon}
|
||||
multiColumn={multiColumn}
|
||||
showBackButton
|
||||
/>
|
||||
|
||||
<ColumnSearchHeader
|
||||
@@ -146,10 +145,10 @@ export const Follows: React.FC<{
|
||||
{displayedAccountIds.length > 0 && <div className='spacer' />}
|
||||
|
||||
<div className='column-footer'>
|
||||
<Link className='button button--block' to='/home'>
|
||||
<Link className='button button--block' to='/start/profile'>
|
||||
<FormattedMessage
|
||||
id='onboarding.follows.done'
|
||||
defaultMessage='Done'
|
||||
id='onboarding.follows.next'
|
||||
defaultMessage='Next: Setup your profile'
|
||||
/>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -136,7 +136,7 @@ export const Profile: React.FC<{
|
||||
}),
|
||||
)
|
||||
.then(() => {
|
||||
history.push('/start/follows');
|
||||
history.push('/home');
|
||||
dispatch(closeOnboarding());
|
||||
return '';
|
||||
})
|
||||
@@ -163,6 +163,7 @@ export const Profile: React.FC<{
|
||||
icon='person'
|
||||
iconComponent={PersonIcon}
|
||||
multiColumn={multiColumn}
|
||||
showBackButton
|
||||
/>
|
||||
|
||||
<div className='scrollable scrollable--flex'>
|
||||
@@ -300,8 +301,8 @@ export const Profile: React.FC<{
|
||||
<LoadingIndicator />
|
||||
) : (
|
||||
<FormattedMessage
|
||||
id='onboarding.profile.save_and_continue'
|
||||
defaultMessage='Save and continue'
|
||||
id='onboarding.profile.finish'
|
||||
defaultMessage='Finish'
|
||||
/>
|
||||
)}
|
||||
</Button>
|
||||
|
||||
@@ -238,8 +238,8 @@ class SwitchingColumnsArea extends PureComponent {
|
||||
<WrappedRoute path='/bookmarks' component={BookmarkedStatuses} content={children} />
|
||||
<WrappedRoute path='/pinned' component={PinnedStatuses} content={children} />
|
||||
|
||||
<WrappedRoute path={['/start', '/start/profile']} exact component={OnboardingProfile} content={children} />
|
||||
<WrappedRoute path='/start/follows' component={OnboardingFollows} content={children} />
|
||||
<WrappedRoute path='/start/profile' exact component={OnboardingProfile} content={children} />
|
||||
<WrappedRoute path={['/start', '/start/follows']} exact component={OnboardingFollows} content={children} />
|
||||
<WrappedRoute path='/directory' component={Directory} content={children} />
|
||||
<WrappedRoute path='/explore' component={Explore} content={children} />
|
||||
<WrappedRoute path='/search' component={Search} content={children} />
|
||||
|
||||
@@ -11813,6 +11813,9 @@ noscript {
|
||||
|
||||
.column-footer {
|
||||
padding: 16px;
|
||||
position: sticky;
|
||||
bottom: 0;
|
||||
background: var(--color-bg-primary);
|
||||
}
|
||||
|
||||
.lists-scrollable {
|
||||
|
||||
Reference in New Issue
Block a user