Merge pull request #1040 from automatisch/usage-data

feat: add subscription update and cancel logics
This commit is contained in:
Ömer Faruk Aydın
2023-04-08 00:34:28 +03:00
committed by GitHub
18 changed files with 237 additions and 55 deletions

View File

@@ -191,7 +191,8 @@ export default function UsageDataInformation() {
<Divider sx={{ mt: 2 }} />
</Box>
<Button
{/* free plan has `null` status so that we can show the upgrade button */}
{billingAndUsageData?.subscription?.status === null && <Button
component={Link}
to={URLS.SETTINGS_PLAN_UPGRADE}
size="small"
@@ -199,7 +200,7 @@ export default function UsageDataInformation() {
sx={{ mt: 2, alignSelf: 'flex-end' }}
>
{formatMessage('usageDataInformation.upgrade')}
</Button>
</Button>}
</CardContent>
</Card>
</React.Fragment>