removed unused dep

This commit is contained in:
Adrian 2025-01-24 21:34:44 -06:00
parent c6ba93c46f
commit e9096c36f7
1 changed files with 928 additions and 925 deletions

View File

@ -224,7 +224,7 @@ export default function SettingsSidebar() {
return;
}
});
}, [send, usbConfig]);
}, [send]);
const handleSSHKeyChange = (newKey: string) => {
setSSHKey(newKey);
@ -636,7 +636,8 @@ export default function SettingsSidebar() {
<GridCard>
<div className="flex items-start p-4 gap-x-4">
<ShieldCheckIcon className="w-8 h-8 mt-1 text-blue-600 shrink-0 dark:text-blue-500" />
<ShieldCheckIcon
className="w-8 h-8 mt-1 text-blue-600 shrink-0 dark:text-blue-500"/>
<div className="space-y-3">
<div className="space-y-2">
<h3 className="text-base font-bold text-slate-900 dark:text-white">
@ -914,7 +915,9 @@ export default function SettingsSidebar() {
theme="primary"
text="Update USB Config"
onClick={() => {
if (Object.values(usbConfig).every(function(i) { return Boolean(i); })) {
if (Object.values(usbConfig).every(function (i) {
return Boolean(i);
})) {
handleUsbConfigChange(usbConfig);
notifications.success("Successfully updated USB Config")
} else {