Skip to content
Merged
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
34 changes: 28 additions & 6 deletions src/cloud/components/organisms/settings/UpgradeTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,34 @@ const UpgradeTab = () => {
<div>per member per month</div>
</div>

<CustomButton
onClick={onUpgradeCallback}
className='upgrade-btn'
>
Upgrade
</CustomButton>
{permissions.length < 2 ? (
<Tooltip
tooltip={
<div style={{ maxWidth: 250 }}>
The Pro Plan is only available for more than 2
persons use. Your plan will be upgraded
immediately to pro plan if you invite new members
while having an active personal pro plan.
</div>
}
side='top'
>
<CustomButton
disabled={true}
variant='inverse-secondary'
className='upgrade-btn'
>
Upgrade
</CustomButton>
</Tooltip>
) : (
<CustomButton
onClick={onUpgradeCallback}
className='upgrade-btn'
>
Upgrade
</CustomButton>
)}
{freeTrialContent}
</td>
</tr>
Expand Down