kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'upgrade-login-page' into 'main'
Implement login button See merge request soapbox-pub/soapbox!3338merge-requests/3346/head
commit
d81202f416
|
@ -2,6 +2,7 @@ import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
import { openModal } from 'soapbox/actions/modals.ts';
|
import { openModal } from 'soapbox/actions/modals.ts';
|
||||||
import Button from 'soapbox/components/ui/button.tsx';
|
import Button from 'soapbox/components/ui/button.tsx';
|
||||||
|
import HStack from 'soapbox/components/ui/hstack.tsx';
|
||||||
import Stack from 'soapbox/components/ui/stack.tsx';
|
import Stack from 'soapbox/components/ui/stack.tsx';
|
||||||
import Text from 'soapbox/components/ui/text.tsx';
|
import Text from 'soapbox/components/ui/text.tsx';
|
||||||
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch.ts';
|
import { useAppDispatch } from 'soapbox/hooks/useAppDispatch.ts';
|
||||||
|
@ -26,19 +27,32 @@ const SignUpPanel = () => {
|
||||||
<FormattedMessage id='signup_panel.title' defaultMessage='New to {site_title}?' values={{ site_title: instance.title }} />
|
<FormattedMessage id='signup_panel.title' defaultMessage='New to {site_title}?' values={{ site_title: instance.title }} />
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text theme='muted' size='sm'>
|
<Text size='sm' theme='muted'>
|
||||||
<FormattedMessage id='signup_panel.subtitle' defaultMessage="Sign up now to discuss what's happening." />
|
<FormattedMessage id='signup_panel.subtitle' defaultMessage="Sign up now to discuss what's happening." />
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Button
|
<HStack space={2}>
|
||||||
theme='primary'
|
<Button
|
||||||
onClick={nostrSignup ? () => dispatch(openModal('NOSTR_SIGNUP')) : undefined}
|
theme='tertiary'
|
||||||
to={nostrSignup ? undefined : '/signup'}
|
onClick={nostrSignup ? () => dispatch(openModal('NOSTR_LOGIN')) : undefined}
|
||||||
block
|
to={nostrSignup ? undefined : '/login'}
|
||||||
>
|
block
|
||||||
<FormattedMessage id='account.register' defaultMessage='Sign up' />
|
>
|
||||||
</Button>
|
<FormattedMessage id='account.login' defaultMessage='Log in' />
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
theme='primary'
|
||||||
|
onClick={nostrSignup ? () => dispatch(openModal('NOSTR_SIGNUP')) : undefined}
|
||||||
|
to={nostrSignup ? undefined : '/signup'}
|
||||||
|
block
|
||||||
|
>
|
||||||
|
<FormattedMessage id='account.register' defaultMessage='Sign up' />
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
</HStack>
|
||||||
|
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue