update alerts dialog and icon imports

This commit is contained in:
Henry Dollman
2024-10-14 17:53:49 -04:00
parent 1b0dffc1ab
commit a57498f8f7
5 changed files with 102 additions and 47 deletions

View File

@@ -11,6 +11,7 @@ import { useEffect, useState } from 'react'
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
// export const cn = clsx
export async function copyToClipboard(content: string) {
const duration = 1500
@@ -51,7 +52,7 @@ export const updateSystemList = async () => {
export const updateAlerts = () => {
pb.collection('alerts')
.getFullList<AlertRecord>({ fields: 'id,name,system,value' })
.getFullList<AlertRecord>({ fields: 'id,name,system,value,min' })
.then((records) => {
$alerts.set(records)
})