Create Group: add info items to confirmation step
This commit is contained in:
parent
d7f5e210d8
commit
2a9f05a765
1 changed files with 52 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FormattedMessage } from 'react-intl';
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
import { Avatar, Divider, Stack, Text } from 'soapbox/components/ui';
|
import { Avatar, Divider, HStack, Stack, Text } from 'soapbox/components/ui';
|
||||||
|
|
||||||
interface IConfirmationStep {
|
interface IConfirmationStep {
|
||||||
group: any
|
group: any
|
||||||
|
@ -31,13 +31,62 @@ const ConfirmationStep: React.FC<IConfirmationStep> = ({ group }) => {
|
||||||
|
|
||||||
<Divider />
|
<Divider />
|
||||||
|
|
||||||
<div>
|
<Stack space={4}>
|
||||||
<Text size='3xl' weight='bold' align='center'>
|
<Text size='3xl' weight='bold' align='center'>
|
||||||
<FormattedMessage id='manage_group.confirmation.title' defaultMessage='You’re all set!' />
|
<FormattedMessage id='manage_group.confirmation.title' defaultMessage='You’re all set!' />
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
|
||||||
|
<Stack space={5}>
|
||||||
|
<InfoListItem number={1}>
|
||||||
|
<FormattedMessage
|
||||||
|
id='manage_group.confirmation.info_1'
|
||||||
|
defaultMessage='As the owner of this group, you can assign staff, delete posts and much more.'
|
||||||
|
/>
|
||||||
|
</InfoListItem>
|
||||||
|
|
||||||
|
<InfoListItem number={2}>
|
||||||
|
<FormattedMessage
|
||||||
|
id='manage_group.confirmation.info_2'
|
||||||
|
defaultMessage="Post the group's first post and get the conversation started."
|
||||||
|
/>
|
||||||
|
</InfoListItem>
|
||||||
|
|
||||||
|
<InfoListItem number={3}>
|
||||||
|
<FormattedMessage
|
||||||
|
id='manage_group.confirmation.info_3'
|
||||||
|
defaultMessage='Share your new group with friends, family and followers to grow its membership.'
|
||||||
|
/>
|
||||||
|
</InfoListItem>
|
||||||
|
</Stack>
|
||||||
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
interface IInfoListNumber {
|
||||||
|
number: number
|
||||||
|
}
|
||||||
|
|
||||||
|
const InfoListNumber: React.FC<IInfoListNumber> = ({ number }) => {
|
||||||
|
return (
|
||||||
|
<div className='flex h-7 w-7 items-center justify-center rounded-full border border-gray-200'>
|
||||||
|
<Text theme='primary' size='sm' weight='bold'>{number}</Text>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
interface IInfoListItem {
|
||||||
|
number: number
|
||||||
|
children: React.ReactNode
|
||||||
|
}
|
||||||
|
|
||||||
|
const InfoListItem: React.FC<IInfoListItem> = ({ number, children }) => {
|
||||||
|
return (
|
||||||
|
<HStack space={3}>
|
||||||
|
<div><InfoListNumber number={number} /></div>
|
||||||
|
<div>{children}</div>
|
||||||
|
</HStack>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
export default ConfirmationStep;
|
export default ConfirmationStep;
|
||||||
|
|
Loading…
Reference in a new issue