Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/nethesis/nethlink
Browse files Browse the repository at this point in the history
  • Loading branch information
therockerline committed Mar 27, 2024
2 parents 7dbff60 + f6c008d commit 51647d1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/classes/controllers/AccountController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class AccountController {
//Controllo se la cartella configs esiste, altrimenti la creo

if (!this.hasConfigsFolderOfFile()) {
log('ENOENT')
//log('ENOENT')
try {
fs.mkdirSync(CONFIG_PATH)
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/hooks/useLocalStoreState.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LocalStorageData, useLocalStore } from '@renderer/store/StoreController'
import { useSubscriber } from './useSubscriber'
import { MutableRefObject, useEffect, useRef, useState } from 'react'
import { MutableRefObject, useEffect, useRef } from 'react'
import { log } from '@shared/utils/logger'

export function useLocalStoreState<T>(
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@
@apply h-full;
@apply select-none;
}
}
}
14 changes: 7 additions & 7 deletions src/renderer/src/pages/NethLinkPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ import { Button } from '@renderer/components/Nethesis'
import avatar from '../assets/TrayLogo.png'
import { SpeedDialFormBox } from '@renderer/components/SpeedDialFormBox'


type TempMissedCall = {
number?: string
company?: string
}

export function NethLinkPage() {
const [search, setSearch] = useState('')
const [account, setAccount, accountRef] = useLocalStoreState<Account>('user')
Expand All @@ -40,13 +46,7 @@ export function NethLinkPage() {
const [missedCalls, setMissedCalls] = useState<CallData[]>([])
const [operators, setOperators, operatorsRef] = useLocalStoreState<OperatorData>('operators')
const [queues, setQueues, queuesRef] = useLocalStoreState<QueuesType>('queues')
const [selectedMissedCall, setSelectedMissedCall] = useState<
| {
number?: string
company?: string
}
| undefined
>()
const [selectedMissedCall, setSelectedMissedCall] = useState<TempMissedCall | undefined>(undefined)
const [selectedSpeedDial, setSelectedSpeedDial] = useState<ContactType>()
const [showDeleteModal, setShowDeleteModal] = useState<boolean>(false)
const cancelDeleteButtonRef = useRef() as MutableRefObject<HTMLButtonElement>
Expand Down
1 change: 0 additions & 1 deletion src/renderer/src/pages/SplashScreenPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import background from '../assets/splashScreenBackground.svg'
import header from '../assets/splashScreenHeader.svg'
import logo from '../assets/splashScreenLogo.svg'
import { t } from 'i18next'
import { useState } from 'react'

export function SplashScreenPage() {
useInitialize(() => { }, true)
Expand Down

0 comments on commit 51647d1

Please sign in to comment.