@@ -375,9 +375,9 @@ function Settings() {
375375 < div className = "space-y-2" >
376376 < Label htmlFor = "firmwareVersion" > Firmware Version</ Label >
377377 < div className = "relative group" >
378- < Input
379- id = "firmwareVersion"
380- value = { infoSettings . firmwareVersion }
378+ < Input
379+ id = "firmwareVersion"
380+ value = { infoSettings . firmwareVersion }
381381 readOnly
382382 className = "bg-muted cursor-not-allowed opacity-80 pr-10"
383383 tabIndex = { - 1 }
@@ -526,26 +526,26 @@ function Settings() {
526526 { connectivityLoading ? 'Saving...' : 'Save' }
527527 </ Button >
528528 </ div >
529- { testConnectionResult && (
530- < div className = { `mt-3 p-3 rounded-lg border ${
531- testConnectionResult === 'success'
532- ? 'bg-green-50 border-green-200 text-green-800 dark:bg-green-900/20 dark:border-green-800 dark:text-green-200'
533- : 'bg-red-50 border-red-200 text-red-800 dark:bg-red-900/20 dark:border-red-800 dark:text-red-200'
534- } `} >
535- < div className = "flex items-center gap-2" >
536- { testConnectionResult === 'success' ? (
537- < div className = "w-2 h-2 bg-green-500 rounded-full" />
538- ) : (
539- < AlertTriangle className = "h-4 w-4" />
540- ) }
541- < span className = "text-sm font-medium" >
542- { testConnectionResult === 'success'
543- ? 'Connection test successful!'
544- : 'Connection test failed. Please check your settings.' }
545- </ span >
546- </ div >
547- </ div >
548- ) }
529+ { testConnectionResult && (
530+ < div className = { `mt-3 p-3 rounded-lg border ${
531+ testConnectionResult === 'success'
532+ ? 'bg-green-50 border-green-200 text-green-800 dark:bg-green-900/20 dark:border-green-800 dark:text-green-200'
533+ : 'bg-red-50 border-red-200 text-red-800 dark:bg-red-900/20 dark:border-red-800 dark:text-red-200'
534+ } `} >
535+ < div className = "flex items-center gap-2" >
536+ { testConnectionResult === 'success' ? (
537+ < div className = "w-2 h-2 bg-green-500 rounded-full" />
538+ ) : (
539+ < AlertTriangle className = "h-4 w-4" />
540+ ) }
541+ < span className = "text-sm font-medium" >
542+ { testConnectionResult === 'success'
543+ ? 'Connection test successful!'
544+ : 'Connection test failed. Please check your settings.' }
545+ </ span >
546+ </ div >
547+ </ div >
548+ ) }
549549
550550 </ CardContent >
551551 </ Card >
@@ -802,16 +802,16 @@ function Settings() {
802802 ) ;
803803 } else if ( w . id === 'add-widget' ) {
804804 content = (
805- < button
806- className = "w-full h-full flex flex-col items-center justify-center border-2 border-dashed border-accent-orange rounded-lg bg-card hover:bg-accent-orange/10 transition-colors focus:outline-none focus:ring-2 focus:ring-accent-orange opacity-60 pointer-events-auto"
807- onClick = { ( ) => setAddDialogOpen ( true ) }
808- type = "button"
809- tabIndex = { 0 }
810- aria-label = "Add widget"
811- >
812- < Plus className = "h-8 w-8 text-accent-orange mb-1" />
813- < span className = "text-accent-orange font-medium" > Add Widget</ span >
814- </ button >
805+ < button
806+ className = "w-full h-full flex flex-col items-center justify-center border-2 border-dashed border-accent-orange rounded-lg bg-card hover:bg-accent-orange/10 transition-colors focus:outline-none focus:ring-2 focus:ring-accent-orange opacity-60 pointer-events-auto"
807+ onClick = { ( ) => setAddDialogOpen ( true ) }
808+ type = "button"
809+ tabIndex = { 0 }
810+ aria-label = "Add widget"
811+ >
812+ < Plus className = "h-8 w-8 text-accent-orange mb-1" />
813+ < span className = "text-accent-orange font-medium" > Add Widget</ span >
814+ </ button >
815815 ) ;
816816 }
817817 return { ...w , content } ;
0 commit comments