Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/cloud/components/organisms/settings/MembersTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { SerializedGuest } from '../../../interfaces/db/guest'
import EmojiIcon from '../../atoms/EmojiIcon'
import { getDocTitle } from '../../../lib/utils/patterns'
import SettingsTeamForm from '../../molecules/SettingsTeamForm'
import { guestsPerMember } from '../../../lib/subscription'

const MembersTab = () => {
const { t } = useTranslation()
Expand Down Expand Up @@ -625,6 +626,18 @@ const MembersTab = () => {
<Spinner className='relative' style={{ top: 2 }} />
)}
</Flexbox>
<SectionDescription>
Guests are people external to your team who you want to work
with on specific documents. They can be invited to
individual documents but not an entire workspace.
</SectionDescription>
<p>
{permissions.length > 0
? `${
permissions.length * guestsPerMember - guestsMap.size
} remaining ${plur('seat', permissions.length)}. `
: 'No Remaining seats. '}
</p>
<StyledMembersTable>
<thead className='table-header'>
<th>User</th>
Expand Down Expand Up @@ -708,6 +721,7 @@ const TopMargin = styled.div`

const StyledMembersTable = styled.table`
width: 100%;
margin-top: ${({ theme }) => theme.space.default}px;

.table-header {
text-align: left;
Expand Down Expand Up @@ -765,7 +779,6 @@ const StyledMembersTable = styled.table`
const StyledGuestInactiveText = styled.p`
margin-top: ${({ theme }) => theme.space.medium}px;
margin-bottom: ${({ theme }) => theme.space.default}px;
line-height: 1.6;
`

export default MembersTab
1 change: 1 addition & 0 deletions src/cloud/components/organisms/settings/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ export const SectionDescription = styled.small`
color: ${({ theme }) => theme.subtleTextColor};
display: block;
margin-bottom: ${({ theme }) => theme.space.xsmall}px;
line-height: 1.6;
`

export const SectionFlexLeft = styled.div`
Expand Down