Style ConsumersList
This commit is contained in:
parent
304e9aa880
commit
609eb543ba
2 changed files with 13 additions and 7 deletions
|
@ -1,7 +1,8 @@
|
|||
import { List as ImmutableList } from 'immutable';
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import { HStack } from 'soapbox/components/ui';
|
||||
import { Card, HStack, Text } from 'soapbox/components/ui';
|
||||
import { useAppSelector } from 'soapbox/hooks';
|
||||
|
||||
import ConsumerButton from './consumer-button';
|
||||
|
@ -15,11 +16,16 @@ const ConsumersList: React.FC<IConsumersList> = () => {
|
|||
|
||||
if (providers.size > 0) {
|
||||
return (
|
||||
<Card className='p-4 sm:rounded-xl bg-gray-50'>
|
||||
<Text size='xs' theme='muted'>
|
||||
<FormattedMessage id='oauth_consumers.title' defaultMessage='Other ways to sign in' />
|
||||
</Text>
|
||||
<HStack space={2}>
|
||||
{providers.map(provider => (
|
||||
<ConsumerButton provider={provider} />
|
||||
))}
|
||||
</HStack>
|
||||
</Card>
|
||||
);
|
||||
} else {
|
||||
return null;
|
||||
|
|
|
@ -31,7 +31,7 @@ const LoginForm: React.FC<ILoginForm> = ({ isLoading, handleSubmit }) => {
|
|||
<h1 className='text-center font-bold text-2xl'><FormattedMessage id='login_form.header' defaultMessage='Sign In' /></h1>
|
||||
</div>
|
||||
|
||||
<Stack className='sm:pt-10 sm:w-2/3 md:w-1/2 mx-auto' space={3}>
|
||||
<Stack className='sm:pt-10 sm:w-2/3 md:w-1/2 mx-auto' space={5}>
|
||||
<Form onSubmit={handleSubmit}>
|
||||
<FormGroup labelText={intl.formatMessage(messages.username)}>
|
||||
<Input
|
||||
|
|
Loading…
Reference in a new issue