Fix jwt-token
This commit is contained in:
@@ -663,40 +663,28 @@ const DeviceModal = ({ device, onClose, onSave }) => {
|
||||
<div className="grid grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label className="block text-sm font-medium text-gray-700 mb-1">
|
||||
Latitude {device && <span className="text-xs text-gray-500">(read-only)</span>}
|
||||
Latitude
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
step="any"
|
||||
name="geo_lat"
|
||||
className={`w-full border border-gray-300 rounded-md px-3 py-2 ${
|
||||
device
|
||||
? 'bg-gray-100 cursor-not-allowed'
|
||||
: 'focus:ring-primary-500 focus:border-primary-500'
|
||||
}`}
|
||||
className="w-full border border-gray-300 rounded-md px-3 py-2 focus:ring-primary-500 focus:border-primary-500"
|
||||
value={formData.geo_lat}
|
||||
onChange={handleChange}
|
||||
disabled={!!device}
|
||||
readOnly={!!device}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label className="block text-sm font-medium text-gray-700 mb-1">
|
||||
Longitude {device && <span className="text-xs text-gray-500">(read-only)</span>}
|
||||
Longitude
|
||||
</label>
|
||||
<input
|
||||
type="number"
|
||||
step="any"
|
||||
name="geo_lon"
|
||||
className={`w-full border border-gray-300 rounded-md px-3 py-2 ${
|
||||
device
|
||||
? 'bg-gray-100 cursor-not-allowed'
|
||||
: 'focus:ring-primary-500 focus:border-primary-500'
|
||||
}`}
|
||||
className="w-full border border-gray-300 rounded-md px-3 py-2 focus:ring-primary-500 focus:border-primary-500"
|
||||
value={formData.geo_lon}
|
||||
onChange={handleChange}
|
||||
disabled={!!device}
|
||||
readOnly={!!device}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user