File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import { DASHBOARD_DOMAIN } from '@/constant/domains'
44import { useEffect , useMemo } from 'react'
55
6- type Icons = 'Archive' | 'Plus' | 'Templates' | 'Trash'
6+ export type Icons =
7+ | 'Archive'
8+ | 'Plus'
9+ | 'Templates'
10+ | 'Trash'
11+ | 'Download'
12+ | 'Disconnected'
713
814interface BreadcrumbsPayload {
915 items : {
Original file line number Diff line number Diff line change 11import { AuthStatus } from '@/app/api/core/types/auth'
22import { LogStatus } from '@/app/api/core/types/log'
33import { useApp } from '@/app/context/AppContext'
4- import { useActionsMenu } from '@/bridge/header'
4+ import { Icons , useActionsMenu } from '@/bridge/header'
55import { copilotDashboardUrl } from '@/config'
66import { ConnectionStatus } from '@/db/schema/qbConnectionLogs'
77import { postFetcher } from '@/helper/fetch.helper'
@@ -294,18 +294,21 @@ export const useAppBridge = ({
294294 link . click ( )
295295 link . remove ( )
296296 }
297- let actions : { label : string ; onClick : ( ) => Promise < void > } [ ] = [ ]
297+ let actions : { label : string ; icon ?: Icons ; onClick : ( ) => Promise < void > } [ ] =
298+ [ ]
298299 if ( connectionStatus ) {
299300 actions = [
300301 {
301302 label : 'Download sync history' ,
303+ icon : 'Download' ,
302304 onClick : downloadCsvAction ,
303305 } ,
304306 ]
305307
306308 if ( isEnabled && syncFlag ) {
307309 actions . push ( {
308- label : 'Disconnect app' ,
310+ label : 'Disconnect account' ,
311+ icon : 'Disconnected' ,
309312 onClick : disconnectAction ,
310313 } )
311314 }
You can’t perform that action at this time.
0 commit comments