Skip to content

Commit f6317d4

Browse files
committed
Keep billing settings entry as dashboard link
1 parent d866db6 commit f6317d4

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

app/src/components/settings/SettingsHome.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { useState } from 'react';
22

33
import { useCoreState } from '../../providers/CoreStateProvider';
44
import { persistor } from '../../store';
5+
import { BILLING_DASHBOARD_URL } from '../../utils/links';
6+
import { openUrl } from '../../utils/openUrl';
57
import {
68
resetOpenHumanDataAndRestartCore,
79
restartApp,
@@ -111,6 +113,25 @@ const SettingsHome = () => {
111113
onClick: () => navigateToSettings('account'),
112114
dangerous: false,
113115
},
116+
{
117+
id: 'billing',
118+
title: 'Billing & Usage',
119+
description: 'Subscription plan, credits, and payment methods',
120+
icon: (
121+
<svg className="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
122+
<path
123+
strokeLinecap="round"
124+
strokeLinejoin="round"
125+
strokeWidth={2}
126+
d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H5a3 3 0 00-3 3v8a3 3 0 003 3z"
127+
/>
128+
</svg>
129+
),
130+
onClick: () => {
131+
void openUrl(BILLING_DASHBOARD_URL);
132+
},
133+
dangerous: false,
134+
},
114135
{
115136
id: 'features',
116137
title: 'Features',

0 commit comments

Comments
 (0)