File tree Expand file tree Collapse file tree
app/src/components/settings Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ import { useState } from 'react';
22
33import { useCoreState } from '../../providers/CoreStateProvider' ;
44import { persistor } from '../../store' ;
5+ import { BILLING_DASHBOARD_URL } from '../../utils/links' ;
6+ import { openUrl } from '../../utils/openUrl' ;
57import {
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' ,
You can’t perform that action at this time.
0 commit comments