fix: TypeScript errors in Pulse frontend components
This commit is contained in:
parent
afbd5c69aa
commit
79b6bdbcd2
2 changed files with 3 additions and 10 deletions
|
|
@ -443,14 +443,7 @@ export default function EnvironmentDashboard() {
|
||||||
<EmptyState
|
<EmptyState
|
||||||
icon={Activity}
|
icon={Activity}
|
||||||
title="No sensors configured"
|
title="No sensors configured"
|
||||||
description={
|
description="Add sensors to start monitoring. To connect your Pulse Grow sensor, set the PULSE_API_KEY environment variable."
|
||||||
<div className="space-y-2">
|
|
||||||
<p>Add sensors to start monitoring.</p>
|
|
||||||
<p className="text-sm">
|
|
||||||
To connect your Pulse Grow sensor, set the <code className="px-1 py-0.5 bg-[var(--color-bg-tertiary)] rounded">PULSE_API_KEY</code> environment variable.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { useEffect, useState } from 'react';
|
import React, { useEffect, useState } from 'react';
|
||||||
import { useAuth } from '../../context/AuthContext';
|
import { useAuth } from '../context/AuthContext';
|
||||||
import { Activity, Thermometer, Droplets, Wind, Sun, Wifi, WifiOff, RefreshCw, Bell } from 'lucide-react';
|
import { Activity, Thermometer, Droplets, Wind, Sun, Wifi, WifiOff, RefreshCw, Bell } from 'lucide-react';
|
||||||
import { useNotifications } from '../../hooks/useNotifications';
|
import { useNotifications } from '../hooks/useNotifications';
|
||||||
|
|
||||||
interface PulseDevice {
|
interface PulseDevice {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue